tvm
Classes | Static Public Member Functions | Public Attributes | List of all members
tvm::runtime::relax_vm::NDArrayCacheMetadata Struct Reference

Metadata for NDArray cache, which by default, is named as "ndarray-cache.json". More...

#include <ndarray_cache_support.h>

Collaboration diagram for tvm::runtime::relax_vm::NDArrayCacheMetadata:

Classes

struct  FileRecord
 Each shard of NDArray cache, which by default, is named as "params_shard_x.bin". More...
 

Static Public Member Functions

static NDArrayCacheMetadata Load (const std::string &path)
 Load the metadata from a specific directory. More...
 
static NDArrayCacheMetadata LoadFromStr (const std::string &json_str, const std::string &path)
 Load the metadata from a given JSON string. More...
 

Public Attributes

std::vector< FileRecordrecords
 The files in the NDArray cache. More...
 
std::string path
 The path to the ndarray-cache.json file. More...
 

Detailed Description

Metadata for NDArray cache, which by default, is named as "ndarray-cache.json".

Member Function Documentation

◆ Load()

static NDArrayCacheMetadata tvm::runtime::relax_vm::NDArrayCacheMetadata::Load ( const std::string &  path)
static

Load the metadata from a specific directory.

◆ LoadFromStr()

static NDArrayCacheMetadata tvm::runtime::relax_vm::NDArrayCacheMetadata::LoadFromStr ( const std::string &  json_str,
const std::string &  path 
)
static

Load the metadata from a given JSON string.

Member Data Documentation

◆ path

std::string tvm::runtime::relax_vm::NDArrayCacheMetadata::path

The path to the ndarray-cache.json file.

◆ records

std::vector<FileRecord> tvm::runtime::relax_vm::NDArrayCacheMetadata::records

The files in the NDArray cache.


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