tvm
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
tvm::meta_schedule::WorkloadNode Class Reference

A workload, i.e. an IRModule and its structural hash. More...

#include <database.h>

Inheritance diagram for tvm::meta_schedule::WorkloadNode:
Collaboration diagram for tvm::meta_schedule::WorkloadNode:

Public Types

using THashCode = size_t
 The type of structural hash. More...
 

Public Member Functions

 TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("meta_schedule.Workload", WorkloadNode, runtime::Object)
 
ObjectRef AsJSON () const
 Export the workload to a JSON string. More...
 

Static Public Member Functions

static void RegisterReflection ()
 

Public Attributes

IRModule mod
 The workload's IRModule. More...
 
THashCode shash
 The workload's structural hash. More...
 

Detailed Description

A workload, i.e. an IRModule and its structural hash.

Member Typedef Documentation

◆ THashCode

The type of structural hash.

Member Function Documentation

◆ AsJSON()

ObjectRef tvm::meta_schedule::WorkloadNode::AsJSON ( ) const

Export the workload to a JSON string.

Returns
An array containing the structural hash and the base64 json string.

◆ RegisterReflection()

static void tvm::meta_schedule::WorkloadNode::RegisterReflection ( )
inlinestatic

◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()

tvm::meta_schedule::WorkloadNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL ( "meta_schedule.Workload"  ,
WorkloadNode  ,
runtime::Object   
)

Member Data Documentation

◆ mod

IRModule tvm::meta_schedule::WorkloadNode::mod

The workload's IRModule.

◆ shash

THashCode tvm::meta_schedule::WorkloadNode::shash

The workload's structural hash.


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