Template Function tvm::ffi::make_object(Args&&…)

Template Function tvm::ffi::make_object(Args&&…)#

Function Documentation#

template<typename T, typename ...Args>
inline ObjectPtr<T> tvm::ffi::make_object(Args&&... args)#

Allocate an object.

Parameters:

args – arguments to the constructor.

Template Parameters:

T – the node type.

Returns:

The ObjectPtr to the allocated object.