19 #ifndef TVM_SCRIPT_IR_BUILDER_RELAX_IR_H_
20 #define TVM_SCRIPT_IR_BUILDER_RELAX_IR_H_
29 namespace ir_builder {
Boolean constant.
Definition: expr.h:597
Managed reference to RelayExprNode.
Definition: expr.h:442
Managed reference to StructInfoNode.
Definition: expr.h:129
Array, container representing a contiguous sequence of ObjectRefs.
Definition: array.h:289
Map container of NodeRef->NodeRef in DSL graph. Map implements copy on write semantics,...
Definition: map.h:1271
Optional container that to represent to a Nullable variant of T.
Definition: optional.h:51
Reference to string objects.
Definition: string.h:98
Managed reference to ElseFrameNode.
Definition: frame.h:288
Managed reference to IfFrameNode.
Definition: frame.h:222
Managed reference to ThenFrameNode.
Definition: frame.h:255
tvm::relax::Var EmitMatchCast(const tvm::relax::Expr &value, const tvm::relax::StructInfo &struct_info)
Emit a match_cast binding to the last binding block frame.
tvm::relax::Var Emit(const tvm::relax::Expr &value, const Optional< tvm::relax::StructInfo > &annotate_struct_info=NullOpt)
Emit a binding to the last binding block frame.
BlockFrame BindingBlock()
Start a binding block frame.
tvm::relax::Var EmitVarBinding(const tvm::relax::VarBinding &binding)
Emit a binding to the last binding block frame.
IfFrame If(tvm::relax::Expr condition)
Create an if statement.
FunctionFrame Function(const Bool &is_pure, const Bool &is_private)
Start a function frame.
ThenFrame Then()
Create a then.
ElseFrame Else()
Create an else.
tvm::relax::Var Arg(const String &name, const tvm::relax::StructInfo &struct_info)
Add a parameter to the last function frame.
void FuncRetStructInfo(const tvm::relax::StructInfo &ret_sinfo)
Specify the return struct info of the last function frame.
void FuncName(const String &name)
Specify the name of the last function frame.
BlockFrame Dataflow()
Start a dataflow binding block frame.
void FuncAttrs(Map< String, ObjectRef > attrs)
Specify the attrs of the last function frame.
void FuncRetValue(const tvm::relax::Expr &value)
Specify the return value of the last function frame.
void DataflowBlockOutput(const Array< tvm::relax::Var > &vars)
Expose the dataflow block output variables as global ones.
runtime implementation for LibTorch/TorchScript.
Definition: analyzer.h:36
constexpr runtime::NullOptType NullOpt
Definition: optional.h:169