Skip to content

Commit

Permalink
change dtype for better testing
Browse files Browse the repository at this point in the history
  • Loading branch information
BowenBao committed Oct 29, 2020
1 parent f0876e9 commit fedbb47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/onnx/test_pytorch_onnx_onnxruntime.py
Original file line number Diff line number Diff line change
Expand Up @@ -2362,7 +2362,7 @@ def test_logsoftmax_dim(self):
def test_logsoftmax_dtype(self):
class Model(torch.nn.Module):
def forward(self, x):
return torch.nn.functional.log_softmax(x, dim=1, dtype=torch.float32)
return torch.nn.functional.log_softmax(x, dim=1, dtype=torch.float64)

x = torch.randn(3, 4, 5, requires_grad=True)
self.run_test(Model(), x)
Expand Down

0 comments on commit fedbb47

Please sign in to comment.