OpenCL init should fail on non-android platforms
This commit is contained in:
parent
33d683c671
commit
8e9c864edc
|
@ -213,8 +213,9 @@ absl::Status TFLiteGPURunner::InitializeOpenCL(
|
|||
cl::NewInferenceEnvironment(env_options, &cl_environment_, &properties));
|
||||
MP_RETURN_IF_ERROR(cl_environment_->NewInferenceBuilder(
|
||||
cl_options, std::move(*graph_cl_), builder));
|
||||
#endif
|
||||
return absl::OkStatus();
|
||||
#endif
|
||||
return mediapipe::UnimplementedError("OpenCL is only supported on Android currently.");
|
||||
}
|
||||
|
||||
} // namespace gpu
|
||||
|
|
Loading…
Reference in New Issue
Block a user