What is the LibTorch equivalent to PyTorch's torch.no_grad?

Viewed 1542

When testing a network in PyTorch one can use with torch.no_grad():. What is the Libtorch (C++) equivalent? Thanks!

1 Answers
Related