MCPcopy Create free account
hub / github.com/apache/singa / clone

Method clone

python/singa/tensor.py:404–409  ·  view source on GitHub ↗

Returns: a new Tensor which does deep copy of this tensor

(self)

Source from the content-addressed store, hash-verified

402 raise ValueError("t should be Tensor or numpy array.")
403
404 def clone(self):
405 '''
406 Returns:
407 a new Tensor which does deep copy of this tensor
408 '''
409 return _call_singa_func(self.data.Clone)
410
411 def repeat(self, repeats, axis):
412 '''Repeat data of a tensor

Callers 5

__getitem__Method · 0.95
deepcopyMethod · 0.95
_linear_helperMethod · 0.95
_batchnorm2d_helperMethod · 0.95
to_hostFunction · 0.45

Calls 1

_call_singa_funcFunction · 0.70

Tested by 2

_linear_helperMethod · 0.76
_batchnorm2d_helperMethod · 0.76