Torch No Grad
#1395
Replies: 2 comments
-
@BobKelly1212 |
Beta Was this translation helpful? Give feedback.
0 replies
-
If you're looking for an API that is close to the Python of PyTorch, you're probably going to be more satisfied with the JavaCPP Presets for PyTorch, which wraps the C++ API of PyTorch, and does have things like "no_grad", see bytedeco/javacpp-presets#623 (comment). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am in the process of rewriting my DRL code in Java (from Python) using the PyTorch engine.
Please can I be advised how create a torch.no_grad() context as in;
with torch.no_grad()
etc, etc
Many thanks in anticipation.
Beta Was this translation helpful? Give feedback.
All reactions