Class IntImm#
Defined in File expr.h
Inheritance Relationships#
Base Type#
public tvm::PrimExpr(Class PrimExpr)
Class Documentation#
-
class IntImm : public tvm::PrimExpr#
Managed reference class to IntImmObj.
See also
Public Functions
-
IntImm(PrimType value_ty, ffi::BigInt value, Location loc = UnknownLoc())#
Constructor.
- Parameters:
value_ty – The primitive type of the value.
value – The internal value.
loc – The location of this object in the source code.
-
template<typename Enum, std::enable_if_t<std::is_enum_v<Enum>, int> = 0>
inline IntImm(PrimType value_ty, Enum value, Location loc = UnknownLoc())#
-
inline explicit IntImm(::tvm::ffi::UnsafeInit tag)#
-
inline __PtrType operator->() const#
-
inline __PtrType get() const#
Public Static Functions
-
static inline IntImm Bool(bool value, Location loc = UnknownLoc())#
Construct a scalar boolean constant.
- Parameters:
value – The boolean value.
loc – The location of this object in the source code.
-
static inline IntImm Int32(ffi::BigInt value, Location loc = UnknownLoc())#
Construct a scalar int32 constant.
- Parameters:
value – The integer value.
loc – The location of this object in the source code.
-
template<typename Enum, std::enable_if_t<std::is_enum_v<Enum>, int> = 0>
static inline IntImm Int32(Enum value, Location loc = UnknownLoc())#
-
static inline IntImm Int64(ffi::BigInt value, Location loc = UnknownLoc())#
Construct a scalar int64 constant.
- Parameters:
value – The integer value.
loc – The location of this object in the source code.
-
IntImm(PrimType value_ty, ffi::BigInt value, Location loc = UnknownLoc())#