#NEWLINE# def transpose( self , * dims ) : #NEWLINE# #INDENT# "Return a new Variable object with transposed dimensions.\n\n        Parameters\n        ----------\n        *dims : str, optional\n            By default, reverse the dimensions. Otherwise, reorder the\n            dimensions to this order.\n\n        Returns\n        -------\n        transposed : Variable\n            The returned object has transposed data and dimensions with the\n            same attributes as the original.\n\n        Notes\n        -----\n        Although this operation returns a view of this variable's data, it is\n        not lazy -- the data will be fully loaded.\n\n        See Also\n        --------\n        numpy.transpose\n        " #NEWLINE# if ( len ( dims ) == 0 ) : #NEWLINE# #INDENT# dims = self . dims [ : : ( - 1 ) ] #NEWLINE# #UNINDENT# axes = self . get_axis_num ( dims ) #NEWLINE# if ( len ( dims ) < 2 ) : #NEWLINE# #INDENT# return self . copy ( deep = False ) #NEWLINE# #UNINDENT# data = ops . transpose ( self . data , axes ) #NEWLINE# return type ( self ) ( dims , data , self . _attrs , self . _encoding , fastpath = True )