ONE - On-device Neural Engine
Loading...
Searching...
No Matches
luci::pass::Expression::Hash Struct Referencefinal

#include <ExpressionCache.h>

Public Member Functions

std::size_t call (const Expression &k) const noexcept
 
std::size_t operator() (const Expression &k) const noexcept
 

Detailed Description

Definition at line 43 of file ExpressionCache.h.

Member Function Documentation

◆ call()

std::size_t luci::pass::Expression::Hash::call ( const Expression k) const
noexcept

Definition at line 231 of file ExpressionCache.cpp.

232{
233 std::size_t res = 0;
234 for (const auto input : k.inputs)
235 hash_combine(res, input);
236
237 hash_combine(res, k.op);
238
239 return res;
240}
std::vector< loco::Node * > inputs

Referenced by operator()().

◆ operator()()

std::size_t luci::pass::Expression::Hash::operator() ( const Expression k) const
inlinenoexcept

Definition at line 46 of file ExpressionCache.h.

46{ return call(k); }
std::size_t call(const Expression &k) const noexcept

References call().


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