19#ifndef TVM_RUNTIME_VM_TENSOR_CACHE_SUPPORT_H_
20#define TVM_RUNTIME_VM_TENSOR_CACHE_SUPPORT_H_
22#include <tvm/ffi/container/array.h>
23#include <tvm/ffi/function.h>
28#include <unordered_map>
51 Device device,
const std::string* raw_data,
52 ffi::Optional<ffi::Tensor>* staging_buffer =
nullptr)
const;
71 const std::string& path_prefix,
72 std::string* raw_data_buffer,
73 ffi::Optional<ffi::Tensor>* staging_buffer =
nullptr)
const;
93 const std::string&
path);
Device-independent tensor allocation, copies, views and serialization.
An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
Definition analysis.h:41
DLDevice Device
Definition device_api.h:46