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;
|
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