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

#include <CirclePack.h>

Collaboration diagram for luci::CirclePackGraphBuilder:

Public Member Functions

bool validate (const ValidateArgs &args) const final
 
- Public Member Functions inherited from luci::GraphBuilder
virtual ~GraphBuilder ()=default
 
bool validate (const ValidateArgs &args, size_t input_cnt) const
 
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 CirclePack.h.

Member Function Documentation

◆ validate()

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

Implements luci::GraphBuilderBase.

Definition at line 27 of file CirclePack.cpp.

28{
29 const auto &inputs = args.op.inputs;
30 const auto &outputs = args.op.outputs;
31 const auto *options = args.op.builtin_options.AsPackOptions();
32
33 if (options->values_count < 1)
34 return false;
35
36 if (inputs.size() != static_cast<uint32_t>(options->values_count))
37 return false;
38
39 if (outputs.size() != 1)
40 return false;
41
42 return true;
43}
args
Definition infer.py:21

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