Created
June 21, 2018 22:10
-
-
Save jamesr66a/51ef0c3a684bc617ee044b67668fb98e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import torch | |
class TracedForward(torch.jit.ScriptModule): | |
@torch.jit.trace(torch.rand(5)): | |
def forward(self, x): | |
return torch.neg(x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment