Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
fix test
  • Loading branch information
davidriazati committed Jul 8, 2019
commit 48b51c4706bdae9e1c2a5806723fb685a0d5969c
1 change: 1 addition & 0 deletions test/cpp/jit/tests_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def __init__(self):
super(Model, self).__init__()
self.dropout = torch.nn.Dropout(0.1)

@torch.jit.script_method
def forward(self, x):
x = self.dropout(x)
return x
Expand Down