Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/pytorch
/ clone
Method
clone
test/test_serialization.py:3985–3986 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
3983
return
r
3984
3985
def
clone(self):
3986
return
type(self)(self.elem.clone())
3987
3988
3989
class
TestGetStateSubclass(torch.Tensor):
Callers
4
_test_serialization_data
Method · 0.45
__reduce_ex__
Method · 0.45
_test_serialization_backwards_compat
Method · 0.45
test_serialization_mmap_loading
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected