ONE - On-device Neural Engine
Loading...
Searching...
No Matches
nest::Closure Class Reference

#include <Closure.h>

Public Member Functions

template<typename... Args>
 Closure (const DomainID &id, Args &&...indices)
 
 operator Expr () const
 
const DomainIDid (void) const
 
const expr::Subscriptsub (void) const
 

Detailed Description

Definition at line 26 of file Closure.h.

Constructor & Destructor Documentation

◆ Closure()

template<typename... Args>
nest::Closure::Closure ( const DomainID id,
Args &&...  indices 
)
inline

Definition at line 30 of file Closure.h.

30 : _id{id}, _sub{std::forward<Args>(indices)...}
31 {
32 // DO NOTHING
33 }

Member Function Documentation

◆ id()

const DomainID & nest::Closure::id ( void  ) const
inline

Definition at line 39 of file Closure.h.

39{ return _id; }

Referenced by nest::Module::ret().

◆ operator Expr()

nest::Closure::operator Expr ( void  ) const

Definition at line 22 of file Closure.cpp.

22{ return std::make_shared<expr::DerefNode>(_id, _sub); }

◆ sub()

const expr::Subscript & nest::Closure::sub ( void  ) const
inline

Definition at line 40 of file Closure.h.

40{ return _sub; }

Referenced by nest::Module::ret().


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