Manually add utils.h? (for torch::NoGradGuard)

Hi,
Is it just me, or do we have to manually add
#include <torch/csrc/api/include/torch/utils.h>
within the [path]/libtorch/include/torch/scripts.h file to use torch::NoGradGuard ?

Also, it would be helpful if it was included in the Getting-started code.

Thanks!

I think it might well be possible that you have to add it.

Can you link the getting started code do you have in mind to add it to? Then we can open an issue.

It currently is a bit in the flux with the Tensor<->Variable merge.

Best regards

Thomas

This is fixed on master, and #include <torch/torch.h> is sufficient for using torch::NoGradGuard.