提交 fa87b1bf 编写于 作者: A Alexander Alekhin

Merge branch 4.x

### OpenCV: Open Source Computer Vision Library
This repository contains extra data for the OpenCV library.
#### Resources
* Homepage: http://opencv.org
* Docs: http://docs.opencv.org
* Q&A forum: https://forum.opencv.org
* previous forum (read only): http://answers.opencv.org
* Issue tracking: https://github.com/opencv/opencv/issues
#### Contributing
Please read before starting work on a pull request: https://github.com/opencv/opencv/wiki/How_to_contribute
Summary of guidelines:
* One pull request per issue;
* Choose the right base branch;
* Include tests and documentation;
* Clean up "oops" commits before submitting;
* Follow the coding style guide.
......@@ -689,6 +689,26 @@ input = Variable(torch.randn(1, 2, 4, 4, 19))
model = PoolConv()
save_data_and_model("pool_conv_3d", input, model)
class DepthWiseAdd(nn.Module):
def __init__(self):
super(DepthWiseAdd, self).__init__()
self.dconv1 = nn.Conv2d(8, 8, kernel_size=3, stride=1, padding=0, groups=8)
self.dconv2 = nn.Conv2d(8, 8, kernel_size=3, stride=1, padding=0, groups=8)
def forward(self, x):
a = self.dconv1(x)
b = self.dconv2(x)
z = a + b
z = z * 2
return z
input = Variable(torch.randn(1, 8, 32, 32))
model = DepthWiseAdd()
model.eval()
save_data_and_model("depthwiseconv_add", input, model)
class Clip(nn.Module):
def __init__(self):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册