'Returns a string representation of this Tensor.
Returns:
str: the representation.'

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))
