Class Var#

Inheritance Relationships#

Base Type#

Derived Type#

Class Documentation#

class Var : public tvm::Expr#

Managed reference to VarObj.

Subclassed by tvm::tirx::TensorVar

Public Types

using ContainerType = VarObj#

Public Functions

explicit Var(ffi::String name, Type ty, Location loc = UnknownLoc())#
Var CopyWithName(const ffi::String &name) const#

Return a fresh ordinary Var with the same type and a new name.

Var CopyWithSuffix(const ffi::String &suffix) const#

Return a fresh ordinary Var with a suffix appended to its name.

Var CopyWithDType(PrimType dtype) const#

Return a fresh ordinary Var with a new primitive type.

Var CopyWithType(Type type) const#

Return a fresh ordinary Var with a new type, retaining its metadata.

inline explicit Var(ffi::ObjectPtr<VarObj> node)#
inline explicit Var(::tvm::ffi::UnsafeInit tag)#
inline __PtrType operator->() const#
inline __PtrType get() const#