ONE - On-device Neural Engine
Loading...
Searching...
No Matches
moco::onnx::GraphBuilder Class Referenceabstract

Parent class of onnx operation graph builders. More...

#include <GraphBuilder.h>

Public Types

using OpsetVersion = int64_t
 

Public Member Functions

virtual bool validate (OpsetVersion, const ::onnx::NodeProto &) const
 
virtual void build (OpsetVersion, const ::onnx::NodeProto &, GraphBuilderContext *) const =0
 
virtual ~GraphBuilder ()
 

Detailed Description

Parent class of onnx operation graph builders.

Note
GraphBuilder call proper build and validate function according to opset version

Definition at line 33 of file GraphBuilder.h.

Member Typedef Documentation

◆ OpsetVersion

Definition at line 36 of file GraphBuilder.h.

Constructor & Destructor Documentation

◆ ~GraphBuilder()

virtual moco::onnx::GraphBuilder::~GraphBuilder ( )
inlinevirtual

Definition at line 40 of file GraphBuilder.h.

40{}

Member Function Documentation

◆ build()

virtual void moco::onnx::GraphBuilder::build ( OpsetVersion  ,
const ::onnx::NodeProto &  ,
GraphBuilderContext  
) const
pure virtual

◆ validate()

virtual bool moco::onnx::GraphBuilder::validate ( OpsetVersion  ,
const ::onnx::NodeProto &   
) const
inlinevirtual

Reimplemented in moco::onnx::ConstantGraphBuilder, and moco::onnx::IdentityGraphBuilder.

Definition at line 38 of file GraphBuilder.h.

38{ return true; }

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