// 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_SEGMENTATION_PLATFORM_PUBLIC_TYPES_PROCESSED_VALUE_H_ #define COMPONENTS_SEGMENTATION_PLATFORM_PUBLIC_TYPES_PROCESSED_VALUE_H_ #include <iosfwd> #include <string> #include "base/time/time.h" #include "url/gurl.h" namespace base { class Value; } namespace segmentation_platform::processing { // A struct that can accommodate multiple output types needed for Segmentation // metadata's feature processing. It can only hold one value at a time with the // corresponding type. struct ProcessedValue { … }; // Represents a set of values that can represent inputs or outputs for a model. Tensor; // For logging and debug purposes. std::ostream& operator<<(std::ostream& out, const ProcessedValue& value); } // namespace segmentation_platform::processing #endif // COMPONENTS_SEGMENTATION_PLATFORM_PUBLIC_TYPES_PROCESSED_VALUE_H_