mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-08 07:39:33 +01:00
Summary: Fixes https://github.com/pytorch/pytorch/issues/25399 As per https://github.com/pytorch/pytorch/issues/25580 I'm pushing this to test my changes on the CI Pull Request resolved: https://github.com/pytorch/pytorch/pull/25586 Differential Revision: D17259178 Pulled By: ezyang fbshipit-source-id: d48cdd602bfda60c213f79a4f124df54a68ca698
8 lines
145 B
Python
8 lines
145 B
Python
from .. import Tensor
|
|
import builtins
|
|
|
|
class Parameter(Tensor):
|
|
def __init__(self, data: Tensor, requires_grad: builtins.bool): ...
|
|
|
|
...
|