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

Method copy

examples/model_selection/Trails/singa_pkg_code/tensor.py:449–455  ·  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

447 return _call_singa_func(singa.DefaultTranspose, self.data)
448
449 def copy(self):
450 '''shallow copy calls copy constructor of singa::Tensor
451
452 Returns:
453 new tensor copied
454 '''
455 return _call_singa_func(CTensor, self.data)
456
457 def deepcopy(self):
458 '''Same as clone().

Callers 1

forwardMethod · 0.45

Calls 1

_call_singa_funcFunction · 0.70

Tested by

no test coverage detected