#include "components/segmentation_platform/embedder/default_model/device_switcher_model.h"
#include <array>
#include <vector>
#include "base/task/sequenced_task_runner.h"
#include "build/chromeos_buildflags.h"
#include "components/segmentation_platform/internal/metadata/metadata_writer.h"
#include "components/segmentation_platform/public/config.h"
#include "components/segmentation_platform/public/constants.h"
#include "components/segmentation_platform/public/features.h"
#include "components/segmentation_platform/public/model_provider.h"
#include "components/segmentation_platform/public/proto/model_metadata.pb.h"
namespace segmentation_platform {
namespace {
enum class DeviceSwitcherClass { … };
constexpr std::array<const char*, 8> kOutputLabels = …;
static_assert …;
#define RANK(x) …
SegmentId;
constexpr SegmentId kDeviceSwitcherModelId = …;
constexpr int64_t kDeviceSwitcherMinSignalCollectionLength = …;
}
std::unique_ptr<Config> DeviceSwitcherModel::GetConfig() { … }
DeviceSwitcherModel::DeviceSwitcherModel()
: … { … }
std::unique_ptr<DefaultModelProvider::ModelConfig>
DeviceSwitcherModel::GetModelConfig() { … }
void DeviceSwitcherModel::ExecuteModelWithInput(
const ModelProvider::Request& inputs,
ExecutionCallback callback) { … }
}