make elementwise ops work

This commit is contained in:
Koan-Sin Tan 2019-05-11 09:42:21 +08:00
parent aa5110bdb2
commit 673939fd24

View File

@ -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");
} }