chromium/services/webnn/public/cpp/webnn_errors.cc

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "services/webnn/public/cpp/webnn_errors.h"

#include <string>
#include <vector>

#include "base/ranges/algorithm.h"
#include "base/strings/string_util.h"
#include "services/webnn/public/cpp/operand_descriptor.h"
#include "services/webnn/public/cpp/supported_data_types.h"

namespace webnn {

namespace {

std::string SupportedDataTypesString(SupportedDataTypes supported_types) {}

}  // namespace
std::string DataTypeToString(OperandDataType type) {}

std::string NotSupportedArgumentTypeError(std::string_view argument_name,
                                          OperandDataType type,
                                          SupportedDataTypes supported_types) {}

std::string NotSupportedConstantTypeError(OperandDataType type,
                                          SupportedDataTypes supported_types) {}

std::string NotSupportedInputArgumentTypeError(
    OperandDataType type,
    SupportedDataTypes supported_types) {}

std::string NotSupportedInputTypeError(std::string_view input_name,
                                       OperandDataType type,
                                       SupportedDataTypes supported_types) {}

std::string NotSupportedOpOutputTypeError(OperandDataType type,
                                          SupportedDataTypes supported_types) {}

std::string NotSupportedOutputTypeError(std::string_view output_name,
                                        OperandDataType type,
                                        SupportedDataTypes supported_types) {}

std::string NotSupportedMLBufferTypeError(OperandDataType type,
                                          SupportedDataTypes supported_types) {}

std::string GetErrorLabelPrefix(std::string_view label) {}

}  // namespace webnn