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

Class DataTypeImm

python/tvm/relax/expr.py:881–888  ·  view source on GitHub ↗

Represent a data type constant.

Source from the content-addressed store, hash-verified

879
880@tvm_ffi.register_object("relax.expr.DataTypeImm")
881class DataTypeImm(Expr, Scriptable):
882 """Represent a data type constant."""
883
884 value: DataType
885 span: Span | None
886
887 def __init__(self, value: DataType | str, span: Span | None = None) -> None:
888 self.__init_handle_by_constructor__(_ffi_api.DataTypeImm, value, span) # type: ignore
889
890
891@tvm_ffi.register_object("relax.expr.Binding")

Callers 5

alloc_storageFunction · 0.85
alloc_tensorFunction · 0.85
alloc_tensorFunction · 0.85
alloc_storageFunction · 0.85
alloc_tensorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…