Merge pull request #28618 from freedomtan:fix_elmementwise_op_problem_in_gpu_delegate

PiperOrigin-RevId: 247950785
This commit is contained in:
TensorFlower Gardener 2019-05-13 09:50:15 -07:00
commit fdd04bd83d

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