make elementwise ops work
This commit is contained in:
parent
aa5110bdb2
commit
673939fd24
@ -1240,8 +1240,7 @@ class ElementwiseOperationParser : public TFLiteOperationParser {
|
|||||||
TfLiteSubParams* tf_options = nullptr;
|
TfLiteSubParams* tf_options = nullptr;
|
||||||
RETURN_IF_ERROR(RetrieveBuiltinData(tflite_node, &tf_options));
|
RETURN_IF_ERROR(RetrieveBuiltinData(tflite_node, &tf_options));
|
||||||
RETURN_IF_ERROR(CheckActivationSupported(tf_options->activation));
|
RETURN_IF_ERROR(CheckActivationSupported(tf_options->activation));
|
||||||
}
|
} else if (!IsOneArgumentOperation()) {
|
||||||
if (!IsOneArgumentOperation()) {
|
|
||||||
return InvalidArgumentError("Incorrect operation type passed");
|
return InvalidArgumentError("Incorrect operation type passed");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user