MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / __repr__

Method __repr__

tensorpack/compat/tensor_spec.py:90–92  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

88 self._shape.is_compatible_with(spec_or_tensor.shape))
89
90 def __repr__(self):
91 return "TensorSpec(shape={}, dtype={}, name={})".format(
92 self.shape, repr(self.dtype), repr(self.name))
93
94 def __hash__(self):
95 return hash((self._shape_tuple, self.dtype))

Callers

nothing calls this directly

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected