#include <CircleUnpack.h>
Definition at line 25 of file CircleUnpack.h.
◆ validate()
bool luci::CircleUnpackGraphBuilder::validate |
( |
const ValidateArgs & |
args | ) |
const |
|
finalvirtual |
Implements luci::GraphBuilderBase.
Definition at line 31 of file CircleUnpack.cpp.
32{
34
36
38 const auto &outputs =
args.op.outputs;
39 const auto *
options =
args.op.builtin_options.AsUnpackOptions();
40
42 return false;
43
44
45 if (
static_cast<int32_t
>(outputs.size()) !=
options->num)
46 {
48 {
49 const auto tensors =
args.reader.tensors();
52 WARN(l) <<
"Warning: import Unpack(" << name <<
") 'num' is not same as outputs used";
53 }
54 else
55 return false;
56 }
57
59 return false;
60
61 const auto tensors =
args.reader.tensors();
63 assert(tensor != nullptr);
65 auto shape_size = static_cast<int32_t>(shape.size());
66 if (shape_size > 0)
67 {
68
70 return false;
71 }
72
73 return true;
74}
const char * tensor_name(const circle::Tensor *tensor)
VectorWrapper< T > wrap(const flatbuffers::Vector< T > *vec)
static UserSettings * settings()
References luci::UserSettings::DisableValidation, LOGGER, luci::UserSettings::settings(), luci::tensor_name(), WARN, and luci::wrap().
The documentation for this class was generated from the following files: