ONE - On-device Neural Engine
|
Go to the source code of this file.
Functions | |
int | validateOperationType (const OperationType &) |
int | validateOperandType (const ANeuralNetworksOperandType &type, const char *tag, bool allowPartial) |
int | validateOperandList (uint32_t count, const uint32_t *list, uint32_t operandCount, const char *tag) |
bool | validateModel (const Model &model) |
bool | validateRequest (const Request &request, const Model &model) |
bool validateModel | ( | const Model & | model | ) |
Definition at line 181 of file Validation.cpp.
Referenced by ModelBuilder::finish().
int validateOperandList | ( | uint32_t | count, |
const uint32_t * | list, | ||
uint32_t | operandCount, | ||
const char * | tag | ||
) |
Definition at line 81 of file Validation.cpp.
References ANEURALNETWORKS_BAD_DATA, ANEURALNETWORKS_NO_ERROR, and LOG.
Referenced by ModelBuilder::addOperation(), and ModelBuilder::identifyInputsAndOutputs().
int validateOperandType | ( | const ANeuralNetworksOperandType & | type, |
const char * | tag, | ||
bool | allowPartial | ||
) |
Definition at line 33 of file Validation.cpp.
References ANEURALNETWORKS_BAD_DATA, ANEURALNETWORKS_FLOAT32, ANEURALNETWORKS_INT32, ANEURALNETWORKS_NO_ERROR, ANEURALNETWORKS_TENSOR_QUANT8_ASYMM, ANEURALNETWORKS_UINT32, kNumberOfDataTypes, and LOG.
Referenced by ModelBuilder::addOperand(), ExecutionBuilder::setInput(), and ExecutionBuilder::setOutput().
int validateOperationType | ( | const OperationType & | type | ) |
Definition at line 27 of file Validation.cpp.
References kNumberOfOperationTypes.
Referenced by ModelBuilder::addOperation().
Definition at line 254 of file Validation.cpp.
References Request::inputs, Request::outputs, and validRequestArguments().