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

no modules named "torch_dwconv" #67

Open
644427434 opened this issue Apr 4, 2023 · 3 comments
Open

no modules named "torch_dwconv" #67

644427434 opened this issue Apr 4, 2023 · 3 comments

Comments

@644427434
Copy link

i've seen the following code in file "model.py",but i can't see where is the "torch_dwconv"
from torch_dwconv import depthwise_conv2d, DepthwiseConv2d
so could please tell me where can i see the file "torch_dwconv"?

@hc200102
Copy link

麻烦问一下你现在解决了吗我也被torch_dwconv难住了

@vinthony
Copy link
Collaborator

are you finding this one: https://github.com/rosinality/depthwise-conv-pytorch

@chengengliu
Copy link

chengengliu commented Dec 5, 2023

For people who are not willing to install the dependency, go check this thread about depth-wise conv. And from that thread, the equivalent native pytorch implementation should be: self.dwconv = nn.Sequential(nn.Conv2d(hidden_dim, hidden_dim, kernel_size=3,stride=1,padding=1,groups=hidden_dim),act_layer())

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

No branches or pull requests

4 participants