MCPcopy
hub / github.com/apache/tvm / __repr__

Method __repr__

python/tvm/runtime/_tensor.py:158–164  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

156 return self
157
158 def __repr__(self):
159 # exception safety handling for chandle=None
160 if self.__chandle__() == 0:
161 return type(self).__name__ + "(chandle=None)"
162 res = f"<tvm.runtime.Tensor shape={self.shape}, {self.device}>\n"
163 res += self.numpy().__repr__()
164 return res
165
166 def __str__(self):
167 return str(self.numpy())

Callers

nothing calls this directly

Calls 1

numpyMethod · 0.95

Tested by

no test coverage detected