// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_OPTIMIZATION_GUIDE_CORE_PAGE_VISIBILITY_MODEL_EXECUTOR_H_ #define COMPONENTS_OPTIMIZATION_GUIDE_CORE_PAGE_VISIBILITY_MODEL_EXECUTOR_H_ #include "components/optimization_guide/core/tflite_model_executor.h" #include "third_party/tflite_support/src/tensorflow_lite_support/cc/task/core/category.h" namespace optimization_guide { // A full implementation of a ModelExecutor that executes the page visibility // model, which needs some special API calls to the TFLite Task library. class PageVisibilityModelExecutor : public TFLiteModelExecutor<std::vector<tflite::task::core::Category>, const std::string&> { … }; } // namespace optimization_guide #endif // COMPONENTS_OPTIMIZATION_GUIDE_CORE_PAGE_VISIBILITY_MODEL_EXECUTOR_H_