Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add grouped convolution support #8341

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add grouped convolution support #8341

wants to merge 1 commit into from

Conversation

tapspatel
Copy link
Contributor

No description provided.

@tapspatel
Copy link
Contributor Author

Issue: #8340

@mywoodstock
Copy link
Contributor

@tapspatel I think we should wait a couple days -- to get the new c++ convs in and then update this PR to use the new version.

@tapspatel
Copy link
Contributor Author

Comment on lines +884 to +900
m_tensor.def(
"convert_conv_weight_tensor_to_grouped_layout",
&convert_conv_weight_tensor_to_grouped_layout,
py::arg("conv_weight_tensor").noconvert(),
py::arg("num_groups"),
py::arg("output_dtype").noconvert() = std::nullopt,
R"doc(
Converts convolution weights to grouped layout with padded zeros
Returns a new tensor with the converted layout.

+----------+----------------------+-----------+-------------+----------+
| Argument | Description | Data type | Valid range | Required |
+==========+======================+===========+=============+==========+
| a | Input tensor | Tensor | | Yes |
+----------+----------------------+-----------+-------------+----------+
)doc");

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should eventually move these bindings to a lower level module that's not just ttl.tensor.*.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants