(self, new_order)
return self.reshape(shape)
Re-orders dimensions of a tensor without preserving data

        Arguments:
            new_order (list): new order of dimensions
Re-orders dimensions of a tensor without preserving data
Re - orders dimensions of a tensor without preserving data
def dimension_reorder(self, new_order):
        """
        Re-orders dimensions of a tensor without preserving data

        Arguments:
            new_order (list): new order of dimensions
        """
        shape = [self.shape[dim] for dim in new_order]
        return self.reshape(shape)
def dimension_reorder ( self , new_order ) : shape = [ self . shape [ dim ] for dim in new_order ] return self . reshape ( shape )