tvm
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static 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_DECLARE_FINAL_OBJECT_INFO (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...
 

Static Public Attributes

static constexpr const char * _type_key = "meta_schedule.Workload"
 

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_DECLARE_FINAL_OBJECT_INFO()

tvm::meta_schedule::WorkloadNode::TVM_DECLARE_FINAL_OBJECT_INFO ( WorkloadNode  ,
runtime::Object   
)

Member Data Documentation

◆ _type_key

constexpr const char* tvm::meta_schedule::WorkloadNode::_type_key = "meta_schedule.Workload"
staticconstexpr

◆ 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: