Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added testdata/dnn/onnx/data/input_mish.npy
Binary file not shown.
Binary file added testdata/dnn/onnx/data/output_mish.npy
Binary file not shown.
10 changes: 9 additions & 1 deletion testdata/dnn/onnx/generate_onnx_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1224,4 +1224,12 @@ def forward(self, x):

x = Variable(torch.randn(1, 2, 20, 20))
model = Conv1ResizePoold()
save_data_and_model("conv_resize_pool_1d", x, model)
save_data_and_model("conv_resize_pool_1d", x, model)

class Mish(nn.Module):
def forward(self, x):
return x * (torch.tanh(F.softplus(x)))

x = Variable(torch.randn([1, 2, 2, 2]))
model = Mish()
save_data_and_model("mish", x, model)
21 changes: 21 additions & 0 deletions testdata/dnn/onnx/models/mish.onnx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
pytorch1.7:�

01
Softplus_0"Softplus

12Tanh_1"Tanh

0
23Mul_2"Multorch-jit-exportZ
0




b
3




B