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

#include <CircleReduceProd.h>

Collaboration diagram for luci::CircleReduceProdGraphBuilder:

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 CircleReduceProd.h.

Member Function Documentation

◆ validate()

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

Implements luci::GraphBuilderBase.

Definition at line 24 of file CircleReduceProd.cpp.

25{
26 if (!GraphBuilder::validate(args, 2))
27 return false;
28
29 const auto &inputs = args.op.inputs;
30 const auto tensors = args.reader.tensors();
31 const auto tensor_1 = tensors.at(inputs.at(1));
32 assert(tensor_1 != nullptr);
33
34 // TODO check input types
35
36 // Check for reduction_indices types
37 switch (tensor_1->type())
38 {
39 case circle::TensorType_INT32:
40 case circle::TensorType_INT64:
41 break;
42 default:
43 return false;
44 }
45
46 return true;
47}
bool validate(const ValidateArgs &args, size_t input_cnt) const
args
Definition infer.py:21

References luci::GraphBuilder::validate().


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