Zhongjin Luo

Results 2 comments of Zhongjin Luo

As is explained in the [tensorflow document](https://www.tensorflow.org/api_docs/python/tf/gather_nd):Note that on CPU, if an out of bound index is found, an error is returned. On GPU, if an out of bound index...

Maybe you can try: `grad_tensor = torch.autograd.grad(outputs=sdf, inputs=points_batch, grad_outputs=torch.ones_like(points_batch), create_graph=True, retain_graph=True)` to `grad_tensor = torch.autograd.grad(outputs=sdf, inputs=points_batch, grad_outputs=torch.ones_like(sdf), create_graph=True, retain_graph=True)`