(self)
return ("CPUTensor(base 0x%x) name:%s shape:%s dtype:%s strides:%s"
                " is_c_contiguous:%s" % (base_id, self.name, self.shape,
                                         self.dtype, self._tensor.strides,
                                         self._tensor.flags.c_contiguous))
Returns a string representation of this Tensor.

        Returns:
            str: the representation.
Returns a string representation of this Tensor.
Returns a string representation of this Tensor .
def __str__(self):
        """
        Returns a string representation of this Tensor.

        Returns:
            str: the representation.
        """
        if self._tensor.base is not None:
            base_id = id(self._tensor.base)
        else:
            base_id = id(self._tensor)
        return ("CPUTensor(base 0x%x) name:%s shape:%s dtype:%s strides:%s"
                " is_c_contiguous:%s" % (base_id, self.name, self.shape,
                                         self.dtype, self._tensor.strides,
                                         self._tensor.flags.c_contiguous))
def __str__ ( self ) : if self . _tensor . base is not None : base_id = id ( self . _tensor . base ) else : base_id = id ( self . _tensor ) return ( "CPUTensor(base 0x%x) name:%s shape:%s dtype:%s strides:%s" " is_c_contiguous:%s" % ( base_id , self . name , self . shape , self . dtype , self . _tensor . strides , self . _tensor . flags . c_contiguous ) )