(self)
| 695 | # pylint: enable=protected-access |
| 696 | |
| 697 | def __str__(self): |
| 698 | return "Tensor(\"%s\"%s%s%s)" % ( |
| 699 | self.name, |
| 700 | (", shape=%s" % |
| 701 | self.get_shape()) if self.get_shape().ndims is not None else "", |
| 702 | (", dtype=%s" % self._dtype.name) if self._dtype else "", |
| 703 | (", device=%s" % self.device) if self.device else "") |
| 704 | |
| 705 | def __repr__(self): |
| 706 | return "<tf.Tensor '%s' shape=%s dtype=%s>" % (self.name, self.get_shape(), |
no test coverage detected