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_exp.npy
Binary file not shown.
Binary file added testdata/dnn/onnx/data/output_exp.npy
Binary file not shown.
8 changes: 8 additions & 0 deletions testdata/dnn/onnx/generate_onnx_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -958,6 +958,14 @@ def forward(self, x):
model = Power(2)
save_data_and_model("pow2", x, model)

class Exp(nn.Module):
def forward(self, x):
return x.exp()

x = Variable(torch.randn(2, 2))
model = Exp()
save_data_and_model("exp", x, model)

class ReduceMaxGlobal(nn.Module):
def forward(self, x):
out = torch.max(x)
Expand Down
11 changes: 11 additions & 0 deletions testdata/dnn/onnx/models/exp.onnx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
pytorch1.7:P

01Exp_0"Exptorch-jit-exportZ
0


b
1


B