MCPcopy Create free account
hub / github.com/apache/tvm / ndim

Method ndim

python/tvm/relax/expr.py:273–277  ·  view source on GitHub ↗

Returns the runtime value of DLTensor::ndim

(self)

Source from the content-addressed store, hash-verified

271
272 @property
273 def ndim(self) -> "Expr":
274 """Returns the runtime value of DLTensor::ndim"""
275 self._check_for_tensor_struct_info()
276 op = tvm.ir.Op.get("relax.inspect.tensor_ndim")
277 return tvm.relax.Call(op, [self])
278
279 @property
280 def shape(self) -> "_DLTensorShapeProxy":

Callers

nothing calls this directly

Calls 2

getMethod · 0.45

Tested by

no test coverage detected