mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 00:21:07 +01:00
Summary: Action following https://github.com/pytorch/pytorch/issues/66232 Pull Request resolved: https://github.com/pytorch/pytorch/pull/67552 Reviewed By: jbschlosser Differential Revision: D32028248 Pulled By: janeyx99 fbshipit-source-id: a006f7026288b7126dba58b31cac28e10ce0fed6
7 lines
115 B
Python
7 lines
115 B
Python
# Owner(s): ["module: unknown"]
|
|
|
|
import torch
|
|
|
|
x = torch.ones((3, 3), requires_grad=True)
|
|
(3 * x).sum().backward()
|