tvm
Loading...
Searching...
No Matches
Public Member Functions | List of all members
tvm::sym::ConstraintContext Class Reference

Managed reference to ConstraintContextObj. Copies share the same context. More...

#include <constraint.h>

Inheritance diagram for tvm::sym::ConstraintContext:
Collaboration diagram for tvm::sym::ConstraintContext:

Public Member Functions

 ConstraintContext ()
 Construct an empty root.
 
 ConstraintContext (ConstraintContext parent, int64_t parent_prefix_size)
 Construct a child capturing [0, parent_prefix_size) of its parent's local entries. Later parent appends do not enter this child's effective constraints.
 
 ConstraintContext (ffi::ObjectPtr< ConstraintContextObj > node)
 Adopt a reference to a non-null context object.
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (ConstraintContext, ffi::ObjectRef, ConstraintContextObj)
 

Detailed Description

Managed reference to ConstraintContextObj. Copies share the same context.

Constructor & Destructor Documentation

◆ ConstraintContext() [1/3]

tvm::sym::ConstraintContext::ConstraintContext ( )
inline

Construct an empty root.

◆ ConstraintContext() [2/3]

tvm::sym::ConstraintContext::ConstraintContext ( ConstraintContext  parent,
int64_t  parent_prefix_size 
)
inline

Construct a child capturing [0, parent_prefix_size) of its parent's local entries. Later parent appends do not enter this child's effective constraints.

Parameters
parentContext supplying inherited constraints.
parent_prefix_sizeNumber of parent-local entries to capture, between zero and parent->LocalSize(), inclusive.
Exceptions
ffi::ErrorIf the prefix is outside that range.

◆ ConstraintContext() [3/3]

tvm::sym::ConstraintContext::ConstraintContext ( ffi::ObjectPtr< ConstraintContextObj >  node)
inlineexplicit

Adopt a reference to a non-null context object.

Member Function Documentation

◆ TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE()

tvm::sym::ConstraintContext::TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE ( ConstraintContext  ,
ffi::ObjectRef  ,
ConstraintContextObj   
)

The documentation for this class was generated from the following file: