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

Class PrimValue

python/tvm/relax/expr.py:858–866  ·  view source on GitHub ↗

The prim expr representing the value.

Source from the content-addressed store, hash-verified

856
857@tvm_ffi.register_object("relax.expr.PrimValue")
858class PrimValue(Expr, Scriptable):
859 """The prim expr representing the value."""
860
861 value: PrimExpr
862
863 def __init__(self, value: PrimExpr | int, span: Span | None = None) -> None:
864 if isinstance(value, int):
865 value = tvm.tirx.IntImm("int64", value)
866 self.__init_handle_by_constructor__(_ffi_api.PrimValue, value, span) # type: ignore
867
868
869@tvm_ffi.register_object("relax.expr.StringImm")

Callers 15

convert_to_exprFunction · 0.85
uniqueFunction · 0.85
eyeFunction · 0.85
eye_likeFunction · 0.85
arangeFunction · 0.85
hamming_windowFunction · 0.85
trilFunction · 0.85
triuFunction · 0.85
layout_transformFunction · 0.85
slice_scatterFunction · 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…