ONE - On-device Neural Engine
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
onert::ir::verifier::InputOutputChecker Class Reference

Check model input and output operands are really exist in the graph. More...

#include <Verifier.h>

Collaboration diagram for onert::ir::verifier::InputOutputChecker:

Public Member Functions

bool verify (const Graph &graph) const noexcept override
 
- Public Member Functions inherited from onert::ir::verifier::IVerifier
virtual ~IVerifier ()=default
 

Detailed Description

Check model input and output operands are really exist in the graph.

Definition at line 58 of file Verifier.h.

Member Function Documentation

◆ verify()

bool onert::ir::verifier::InputOutputChecker::verify ( const Graph graph) const
overridevirtualnoexcept

Implements onert::ir::verifier::IVerifier.

Definition at line 221 of file Verifier.cc.

222{
223 for (auto &&operand_ind :
224 (graph.getInputs() + graph.getOutputs()) | Remove::DUPLICATED | Remove::UNDEFINED)
225 {
226 if (!graph.operands().exist(operand_ind))
227 {
228 VERBOSE(InputOutputChecker) << "Input or Output tensor " << operand_ind << " does not exist.";
229 return false;
230 }
231 }
232 return true;
233}
#define VERBOSE(name, lv)
Definition Log.h:71

References onert::ir::DUPLICATED, onert::ir::UNDEFINED, and VERBOSE.


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