Merge pull request #28618 from freedomtan:fix_elmementwise_op_problem_in_gpu_delegate
PiperOrigin-RevId: 247950785
This commit is contained in:
commit
fdd04bd83d
@ -1240,8 +1240,7 @@ class ElementwiseOperationParser : public TFLiteOperationParser {
|
||||
TfLiteSubParams* tf_options = nullptr;
|
||||
RETURN_IF_ERROR(RetrieveBuiltinData(tflite_node, &tf_options));
|
||||
RETURN_IF_ERROR(CheckActivationSupported(tf_options->activation));
|
||||
}
|
||||
if (!IsOneArgumentOperation()) {
|
||||
} else if (!IsOneArgumentOperation()) {
|
||||
return InvalidArgumentError("Incorrect operation type passed");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user