© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Mohamad Mahmood
Programming (Mobile, Web, Database and Machine Learning). Studying at the Center For Artificial Intelligence Technology (CAIT), FTSM, UKM MY
The torch.no_grad() context manager in PyTorch is used to disable gradient calculation during the execution of a block of code. This is particularly useful in scenarios where you don’t need to compute gradients, such as during model evaluation or inf...
No responses yet.