Don't allow requires_grad to be set on integer Tensor constructors in…#7185
Don't allow requires_grad to be set on integer Tensor constructors in…#7185gchanan merged 7 commits intopytorch:masterfrom
Conversation
|
@pytorchbot retest this please. |
|
|
||
| namespace torch { namespace autograd { namespace utils { | ||
|
|
||
| inline at::Tensor set_requires_grad(at::Tensor self, bool requires_grad) { |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
|
#7034 also didn't put this error |
|
…t on integer Tensor constructors in… (pytorch/pytorch#7185) pytorch/pytorch@7abdc30
pytorch#7185) * Don't allow requires_grad to be set on integer Tensor constructors in tensor_new. * Fix autograd test. * Fix test_distributions. * Fix test_jit. * Fix NN tests.
… tensor_new.