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

Method is_transpose

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

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

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

transposeMethod · 0.45

Tested by

no test coverage detected