| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// Wraps the GPU-process `WebNNContextProvider`. When the in-process TFLite
// backend is compiled in, falls back to it on GPU-process error.This is confusing because in unit tests there is no GPU process. This should be more explicit that is mimicking the behavior of the renderer process and that `WebNNContextProviderImpl` is expected to reject requests which wouldn't be handled by the GPU process.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// Wraps the GPU-process `WebNNContextProvider`. When the in-process TFLite
// backend is compiled in, falls back to it on GPU-process error.This is confusing because in unit tests there is no GPU process. This should be more explicit that is mimicking the behavior of the renderer process and that `WebNNContextProviderImpl` is expected to reject requests which wouldn't be handled by the GPU process.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
#if BUILDFLAG(WEBNN_USE_CHROME_ML_API)Nit: If `WEBNN_USE_CHROME_ML_API` is not defined, there will be an empty if statement body which is confusing. Would it be better to move `#if BUILDFLAG(WEBNN_USE_CHROME_ML_API)` out and guard the entire if statement?
#else
WebNNContextImplPtr context_impl(nullptr, OnTaskRunnerDeleter(task_runner));
OnCreateWebNNContextImpl(
std::move(callback), std::move(remote), std::move(write_tensor_producer),
std::move(read_tensor_consumer), std::move(context_impl));Should we keep this #else code path? May its removal leave a code path that never reports an error if tflite is disabled and ORT is not available?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Thanks for review, done the comments.
Nit: If `WEBNN_USE_CHROME_ML_API` is not defined, there will be an empty if statement body which is confusing. Would it be better to move `#if BUILDFLAG(WEBNN_USE_CHROME_ML_API)` out and guard the entire if statement?
Done
#else
WebNNContextImplPtr context_impl(nullptr, OnTaskRunnerDeleter(task_runner));
OnCreateWebNNContextImpl(
std::move(callback), std::move(remote), std::move(write_tensor_producer),
std::move(read_tensor_consumer), std::move(context_impl));Should we keep this #else code path? May its removal leave a code path that never reports an error if tflite is disabled and ORT is not available?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |