MCPcopy
hub / github.com/yangchris11/samurai / copy

Method copy

lib/utils/tensor.py:14–15  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

12 return TensorDict(self, **other)
13
14 def copy(self):
15 return TensorDict(super(TensorDict, self).copy())
16
17 def __deepcopy__(self, memodict={}):
18 return TensorDict(copy.deepcopy(list(self), memodict))

Callers 7

build_sam2Function · 0.45
_get_image_featureMethod · 0.45
remove_objectMethod · 0.45
__init__Method · 0.45
copyMethod · 0.45

Calls 1

TensorDictClass · 0.85

Tested by

no test coverage detected