reference to closure.  
 More...
#include <vm.h>
|  | 
| static ffi::Function | BindLastArgs (ffi::Function func, std::vector< ffi::Any > last_args) | 
|  | Create another ffi::Function with last arguments already bound to last_args.  More... 
 | 
|  | 
◆ VMClosure()
      
        
          | tvm::runtime::vm::VMClosure::VMClosure | ( | ffi::String | func_name, | 
        
          |  |  | ffi::Function | impl | 
        
          |  | ) |  |  | 
      
 
 
◆ BindLastArgs()
  
  | 
        
          | static ffi::Function tvm::runtime::vm::VMClosure::BindLastArgs | ( | ffi::Function | func, |  
          |  |  | std::vector< ffi::Any > | last_args |  
          |  | ) |  |  |  | static | 
 
Create another ffi::Function with last arguments already bound to last_args. 
This is a helper function to create captured closures. 
- Parameters
- 
  
    | func | The input func, can be a VMClosure or ffi::Function. |  | last_args | The arguments to bound to in the end of the function. |  
 
- Note
- The new function takes in arguments and append the last_args in the end. 
 
 
◆ TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE()
      
        
          | tvm::runtime::vm::VMClosure::TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE | ( | VMClosure | , | 
        
          |  |  | ObjectRef | , | 
        
          |  |  | VMClosureObj |  | 
        
          |  | ) |  |  | 
      
 
 
The documentation for this class was generated from the following file:
- include/tvm/runtime/vm/vm.h