platform_options.h 925 B

1234567891011121314151617181920212223242526
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_SEGMENTATION_PLATFORM_INTERNAL_PLATFORM_OPTIONS_H_
  5. #define COMPONENTS_SEGMENTATION_PLATFORM_INTERNAL_PLATFORM_OPTIONS_H_
  6. namespace segmentation_platform {
  7. struct PlatformOptions {
  8. explicit PlatformOptions(bool force_refresh_results);
  9. ~PlatformOptions() = default;
  10. PlatformOptions(const PlatformOptions& other) = default;
  11. static PlatformOptions CreateDefault();
  12. // The segmentation platform will ignore all the valid results from previous
  13. // model executions, and re-run all the models and recompute segment
  14. // selections. Used for testing the model execution locally.
  15. bool force_refresh_results{false};
  16. };
  17. } // namespace segmentation_platform
  18. #endif // COMPONENTS_SEGMENTATION_PLATFORM_INTERNAL_PLATFORM_OPTIONS_H_