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

Function transpose

python/singa/tensor.py:849–860  ·  view source on GitHub ↗

To transpose the tensor Args: t: input tensor axes: axes to transpose Returns: the transposed tensor

(t, axes=None)

Source from the content-addressed store, hash-verified

847
848
849def transpose(t, axes=None):
850 '''To transpose the tensor
851
852 Args:
853 t: input tensor
854 axes: axes to transpose
855
856 Returns:
857 the transposed tensor
858 '''
859 ret = t.transpose(axes)
860 return ret
861
862
863def copy_data_to_from(dst, src, size, dst_offset=0, src_offset=0):

Callers 4

einsumFunction · 0.70
tensordotFunction · 0.70
tensor.ccFile · 0.50
is_contiguousMethod · 0.50

Calls 1

transposeMethod · 0.45

Tested by

no test coverage detected