MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / __str__

Method __str__

tensorflow/python/framework/ops.py:697–703  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers 2

create_op_embeddingsMethod · 0.45

Calls 1

get_shapeMethod · 0.95

Tested by

no test coverage detected