tvm
Classes | Namespaces | Functions
memory.h File Reference

Runtime memory management. More...

#include <tvm/runtime/object.h>
#include <cstdlib>
#include <type_traits>
#include <utility>
Include dependency graph for memory.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  tvm::runtime::ObjAllocatorBase< Derived >
 Base class of object allocators that implements make. Use curiously recurring template pattern. More...
 
class  tvm::runtime::SimpleObjAllocator
 
class  tvm::runtime::SimpleObjAllocator::Handler< T >
 
class  tvm::runtime::SimpleObjAllocator::ArrayHandler< ArrayType, ElemType >
 

Namespaces

 tvm
 runtime implementation for LibTorch/TorchScript.
 
 tvm::runtime
 

Functions

template<typename T , typename... Args>
ObjectPtr< T > tvm::runtime::make_object (Args &&... args)
 Allocate an object using default allocator. More...
 
template<typename ArrayType , typename ElemType , typename... Args>
ObjectPtr< ArrayType > tvm::runtime::make_inplace_array_object (size_t num_elems, Args &&... args)
 

Detailed Description

Runtime memory management.