tvm
|
Base class of object allocators that implements make. Use curiously recurring template pattern. More...
#include <memory.h>
Public Member Functions | |
template<typename T , typename... Args> | |
ObjectPtr< T > | make_object (Args &&... args) |
Make a new object using the allocator. More... | |
template<typename ArrayType , typename ElemType , typename... Args> | |
ObjectPtr< ArrayType > | make_inplace_array (size_t num_elems, Args &&... args) |
ObjectPtr< relay::LetNode > | make_object () |
ObjectPtr< relay::CallNode > | make_object () |
Base class of object allocators that implements make. Use curiously recurring template pattern.
Derived | The derived class. |
|
inline |
ArrayType | The type to be allocated. |
ElemType | The type of array element. |
Args | The constructor signature. |
num_elems | The number of array elements. |
args | The arguments. |
|
inline |
|
inline |
|
inline |
Make a new object using the allocator.
T | The type to be allocated. |
Args | The constructor signature. |
args | The arguments. |