mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Update to TorchFix 0.4.0 (#119424)
`torch.library.Library` updated to `torch.library._scoped_library` in files with many tests where it seems obvious to do, otherwise `noqa: TOR901` added - see https://github.com/pytorch/pytorch/pull/118318 for more context. Pull Request resolved: https://github.com/pytorch/pytorch/pull/119424 Approved by: https://github.com/zou3519
This commit is contained in:
committed by
PyTorch MergeBot
parent
5acd1f0f7d
commit
bd9db6a9c7
@ -10205,7 +10205,7 @@ tensor([[[1.+1.j, 1.+1.j, 1.+1.j, ..., 1.+1.j, 1.+1.j, 1.+1.j],
|
||||
from torch.library import Library, impl
|
||||
global _my_storage
|
||||
|
||||
my_lib = Library("my_lib", "DEF")
|
||||
my_lib = Library("my_lib", "DEF") # noqa: TOR901
|
||||
my_lib.define('my_func() -> None')
|
||||
|
||||
a = torch.tensor([1.])
|
||||
|
Reference in New Issue
Block a user