MCPcopy Create free account
hub / github.com/pytorch/pytorch / copy

Method copy

torch/_numpy/_ndarray.py:292–293  ·  view source on GitHub ↗
(self: ArrayLike, order: NotImplementedType = "C")

Source from the content-addressed store, hash-verified

290
291 @normalizer
292 def copy(self: ArrayLike, order: NotImplementedType = "C"):
293 return self.clone()
294
295 @normalizer
296 def flatten(self: ArrayLike, order: NotImplementedType = "C"):

Callers 15

whichmoduleMethod · 0.45
__init__Method · 0.45
__init__Method · 0.45
minimizeFunction · 0.45
_set_inputsMethod · 0.45
_coalesce_timelineMethod · 0.45
set_current_metaFunction · 0.45
__deepcopy__Method · 0.45
node_copyMethod · 0.45
cacheMethod · 0.45
_method_from_srcFunction · 0.45
__reduce_deploy__Method · 0.45

Calls 1

cloneMethod · 0.45

Tested by 3

_test_gather_objectMethod · 0.36