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

Method copy

python/singa/tensor.py:480–486  ·  view source on GitHub ↗

shallow copy calls copy constructor of singa::Tensor Returns: new tensor copied

(self)

Source from the content-addressed store, hash-verified

478 return _call_singa_func(singa.DefaultTranspose, self.data)
479
480 def copy(self):
481 '''shallow copy calls copy constructor of singa::Tensor
482
483 Returns:
484 new tensor copied
485 '''
486 return _call_singa_func(CTensor, self.data)
487
488 def deepcopy(self):
489 '''Same as clone().

Callers 4

test_tensor_copyMethod · 0.95
forwardMethod · 0.45
forwardMethod · 0.45
backwardMethod · 0.45

Calls 1

_call_singa_funcFunction · 0.70

Tested by 1

test_tensor_copyMethod · 0.76