#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) { … }
}
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) { … }
}