ONE - On-device Neural Engine
Loading...
Searching...
No Matches
nnfw::misc::tensor::Comparator::Observer Struct Referenceabstract

Struct to observe comparison results. More...

#include <Comparator.h>

Public Member Functions

virtual void notify (const Index &index, float expected, float obtained)=0
 Get notification of comparison result at every index of two tensors.
 

Detailed Description

Struct to observe comparison results.

Definition at line 61 of file Comparator.h.

Member Function Documentation

◆ notify()

virtual void nnfw::misc::tensor::Comparator::Observer::notify ( const Index index,
float  expected,
float  obtained 
)
pure virtual

Get notification of comparison result at every index of two tensors.

Parameters
[in]indexIndex of tensors compared
[in]expectedExpected value of element at index
[in]obtainedObtained value of element at index
Returns
N/A

Referenced by nnfw::misc::tensor::Comparator::compare().


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