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

Method is_transpose

python/singa/tensor.py:184–189  ·  view source on GitHub ↗

Returns: True if the internal data is transposed; otherwise False.

(self)

Source from the content-addressed store, hash-verified

182 return self.ndim() == 0
183
184 def is_transpose(self):
185 '''
186 Returns:
187 True if the internal data is transposed; otherwise False.
188 '''
189 return self.data.transpose()
190
191 def transpose(self, axes=None):
192 ''' To transpose the tensor

Callers 1

test_tensor_fieldsMethod · 0.45

Calls 1

transposeMethod · 0.45

Tested by 1

test_tensor_fieldsMethod · 0.36