Skip to content

Commit 9491aae

Browse files
committed
Merge pull request #858 from alalek:backport_19545
2 parents c9b7711 + 4020ba6 commit 9491aae

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

testdata/dnn/onnx/data/input_exp.npy

144 Bytes
Binary file not shown.

testdata/dnn/onnx/data/output_exp.npy

144 Bytes
Binary file not shown.

testdata/dnn/onnx/generate_onnx_models.py

+8
Original file line numberDiff line numberDiff line change
@@ -958,6 +958,14 @@ def forward(self, x):
958958
model = Power(2)
959959
save_data_and_model("pow2", x, model)
960960

961+
class Exp(nn.Module):
962+
def forward(self, x):
963+
return x.exp()
964+
965+
x = Variable(torch.randn(2, 2))
966+
model = Exp()
967+
save_data_and_model("exp", x, model)
968+
961969
class ReduceMaxGlobal(nn.Module):
962970
def forward(self, x):
963971
out = torch.max(x)

testdata/dnn/onnx/models/exp.onnx

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
pytorch1.7:P
2+

3+
01Exp_0"Exptorch-jit-exportZ
4+
0
5+

6+

7+
b
8+
1
9+

10+

11+
B

0 commit comments

Comments
 (0)