tvm
Public Member Functions | List of all members
tvm::UniqueNameSupply Class Reference

Managed reference class to UniqueNameSupplyNode. More...

#include <unique_name_supply.h>

Inheritance diagram for tvm::UniqueNameSupply:
Collaboration diagram for tvm::UniqueNameSupply:

Public Member Functions

 UniqueNameSupply (const ffi::String &prefix="", ffi::Map< ffi::String, int64_t > name_map={})
 Constructor. More...
 
template<typename Iter , typename Lambda >
 UniqueNameSupply (Iter begin, Iter end, Lambda f)
 Construct UniqueNameSupply by reserving names from the given iterator range. More...
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (UniqueNameSupply, ffi::ObjectRef, UniqueNameSupplyNode)
 

Detailed Description

Managed reference class to UniqueNameSupplyNode.

See also
UniqueNameSupplyNode

Constructor & Destructor Documentation

◆ UniqueNameSupply() [1/2]

tvm::UniqueNameSupply::UniqueNameSupply ( const ffi::String &  prefix = "",
ffi::Map< ffi::String, int64_t >  name_map = {} 
)
explicit

Constructor.

Parameters
prefixThe prefix to be used with this UniqueNameSupply.
name_mapAn optional map.

◆ UniqueNameSupply() [2/2]

template<typename Iter , typename Lambda >
tvm::UniqueNameSupply::UniqueNameSupply ( Iter  begin,
Iter  end,
Lambda  f 
)
inline

Construct UniqueNameSupply by reserving names from the given iterator range.

The functor should return the name of the dereferenced object.

Member Function Documentation

◆ TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE()

tvm::UniqueNameSupply::TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE ( UniqueNameSupply  ,
ffi::ObjectRef  ,
UniqueNameSupplyNode   
)

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