|
tvm
|
Classes | |
| class | FunctionFrame |
| Managed reference to FunctionFrameObj. More... | |
| class | FunctionFrameObj |
| A frame that represents the Function containing TIR statements. More... | |
Functions | |
| TVM_TIRX_DLL FunctionFrame | Function (bool is_private=false, bool persistent=false, bool is_declaration=false) |
| The primitive function statement. | |
| TVM_TIRX_DLL Var | Arg (ffi::String name, Var var) |
| The Function variable arguments adding function. | |
| TVM_TIRX_DLL TensorVar | Arg (ffi::String name, TensorVar tensor) |
| The Function tensor arguments adding function. | |
| TVM_TIRX_DLL void | FuncName (ffi::String name) |
| The Function naming statement. | |
| TVM_TIRX_DLL void | FuncAttrs (ffi::Map< ffi::String, ffi::Any > attrs) |
| The Function annotation statement. | |
| TVM_TIRX_DLL Type | FuncRet (Type ret_type) |
| The Function return type statement. | |
| TVM_TIRX_DLL tvm::Stmt | TensorStore (Expr dest, ffi::Array< PrimExpr > indices, PrimExpr value) |
| Store data in a tensor destination. | |
| Var | Handle (ffi::Optional< PrimType > dtype=std::nullopt, runtime::MemoryScope storage_scope={}) |
| Create a TIR var that represents a pointer. | |
| Var | TensorMap () |
| TVM_TIRX_DLL TensorVar tvm::script::ir_builder::tirx::Arg | ( | ffi::String | name, |
| TensorVar | tensor | ||
| ) |
The Function tensor arguments adding function.
| name | The name of the tensor. |
| tensor | The tensor argument. |
| TVM_TIRX_DLL Var tvm::script::ir_builder::tirx::Arg | ( | ffi::String | name, |
| Var | var | ||
| ) |
The Function variable arguments adding function.
| name | The name of the variable. |
| var | The variable argument. |
| TVM_TIRX_DLL void tvm::script::ir_builder::tirx::FuncAttrs | ( | ffi::Map< ffi::String, ffi::Any > | attrs | ) |
The Function annotation statement.
| attrs | The annotations of the Function. |
| TVM_TIRX_DLL void tvm::script::ir_builder::tirx::FuncName | ( | ffi::String | name | ) |
The Function naming statement.
| name | The name of the Function. |
| TVM_TIRX_DLL Type tvm::script::ir_builder::tirx::FuncRet | ( | Type | ret_type | ) |
The Function return type statement.
| ret_type | The return type of the Function. |
| TVM_TIRX_DLL FunctionFrame tvm::script::ir_builder::tirx::Function | ( | bool | is_private = false, |
| bool | persistent = false, |
||
| bool | is_declaration = false |
||
| ) |
The primitive function statement.
|
inline |
Create a TIR var that represents a pointer.
| dtype | The optional data type of the pointer. If omitted, construct an opaque handle. |
| storage_scope | The storage scope of the pointer. |
|
inline |
| TVM_TIRX_DLL tvm::Stmt tvm::script::ir_builder::tirx::TensorStore | ( | Expr | dest, |
| ffi::Array< PrimExpr > | indices, | ||
| PrimExpr | value | ||
| ) |
Store data in a tensor destination.
| dest | The destination expression. |
| indices | The indices location to be stored. |
| value | The value to be stored. |