ONE - On-device Neural Engine
Loading...
Searching...
No Matches
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 71 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 225 of file Verifier.cc.

226{
227 for (auto &&operand_ind :
228 (graph.getInputs() + graph.getOutputs()) | Remove::DUPLICATED | Remove::UNDEFINED)
229 {
230 if (!graph.operands().exist(operand_ind))
231 {
232 VERBOSE(InputOutputChecker) << "Input or Output tensor " << operand_ind << " does not exist.";
233 return false;
234 }
235 }
236 return true;
237}
#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: