Struct tvm::ir::ty::TypeVarNode [−][src]
#[repr(C)]pub struct TypeVarNode {
pub base: TypeNode,
pub name_hint: TString,
pub kind: TypeKind,
}
Expand description
Type parameter in functions.
A type variable can be viewed as template parameter in c++ template function.
For example, in the following pesudo code, the TypeVar of f is TypeVar(“n”, kind=kShapeVar). This function can take in a Tensor with shape=(3, 3) and returns a Tensor with shape=(9,)
Fields
base: TypeNode
name_hint: TString
kind: TypeKind
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for TypeVarNode
impl !Send for TypeVarNode
impl !Sync for TypeVarNode
impl Unpin for TypeVarNode
impl UnwindSafe for TypeVarNode
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more