ONE - On-device Neural Engine
Loading...
Searching...
No Matches
onert::ir::ModelEdgeHash Struct Reference

#include <NNPkg.h>

Public Member Functions

size_t operator() (const ::onert::ir::ModelEdge &edge) const noexcept
 

Detailed Description

Definition at line 48 of file NNPkg.h.

Member Function Documentation

◆ operator()()

size_t onert::ir::ModelEdgeHash::operator() ( const ::onert::ir::ModelEdge edge) const
inlinenoexcept

Definition at line 50 of file NNPkg.h.

51 {
52 unsigned long long h1 = (std::get<0>(edge.from).value() << 24) |
53 (std::get<1>(edge.from).value() << 16) | std::get<2>(edge.from).value();
54 unsigned long long h2 = (std::get<0>(edge.to).value() << 24) |
55 (std::get<1>(edge.to).value() << 16) | std::get<2>(edge.to).value();
56 return h1 + h2;
57 }

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