ONE - On-device Neural Engine
Loading...
Searching...
No Matches
luci::CircleSplitGraphBuilder Class Reference

#include <CircleSplit.h>

Collaboration diagram for luci::CircleSplitGraphBuilder:

Public Member Functions

bool validate (const ValidateArgs &args) const final
 
- Public Member Functions inherited from luci::GraphBuilderMultiOutput
virtual ~GraphBuilderMultiOutput ()=default
 
CircleNodebuild (const circle::OperatorT &op, GraphBuilderContext *context) const final
 
- Public Member Functions inherited from luci::GraphBuilderBase
virtual ~GraphBuilderBase ()=default
 

Detailed Description

Definition at line 25 of file CircleSplit.h.

Member Function Documentation

◆ validate()

bool luci::CircleSplitGraphBuilder::validate ( const ValidateArgs args) const
finalvirtual

Implements luci::GraphBuilderBase.

Definition at line 28 of file CircleSplit.cpp.

29{
30 const auto &inputs = args.op.inputs;
31 const auto &outputs = args.op.outputs;
32 const auto *options = args.op.builtin_options.AsSplitOptions();
33
34 if (inputs.size() != 2)
35 return false;
36
37 if (static_cast<int32_t>(outputs.size()) != options->num_splits)
38 return false;
39
40 // TODO check types
41
42 return true;
43}
args
Definition infer.py:21

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