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

Method T

examples/model_selection/Trails/singa_pkg_code/tensor.py:441–447  ·  view source on GitHub ↗

shallow copy. Returns: a new Tensor which shares the underlying data memory (shallow copy).

(self)

Source from the content-addressed store, hash-verified

439 return t
440
441 def T(self):
442 ''' shallow copy.
443
444 Returns:
445 a new Tensor which shares the underlying data memory (shallow copy).
446 '''
447 return _call_singa_func(singa.DefaultTranspose, self.data)
448
449 def copy(self):
450 '''shallow copy calls copy constructor of singa::Tensor

Callers 2

trainFunction · 0.95
trainFunction · 0.95

Calls 1

_call_singa_funcFunction · 0.70

Tested by

no test coverage detected