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

Method T

python/singa/tensor.py:472–478  ·  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

470 return t
471
472 def T(self):
473 ''' shallow copy.
474
475 Returns:
476 a new Tensor which shares the underlying data memory (shallow copy).
477 '''
478 return _call_singa_func(singa.DefaultTranspose, self.data)
479
480 def copy(self):
481 '''shallow copy calls copy constructor of singa::Tensor

Callers 3

TEST_FFunction · 0.45
TESTFunction · 0.45
TEST_FFunction · 0.45

Calls 1

_call_singa_funcFunction · 0.70

Tested by 3

TEST_FFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36