Download ScaleDF_rebuttal/python_dedup_pkgs/onnx/common/assertions.h from VideoUFO/ResearchData_P1: direct link, hf CLI and curl.
- Browser
- Download file 3.06 kB
-
https://huggingface.co/datasets/VideoUFO/ResearchData_P1/resolve/main/ScaleDF_rebuttal/python_dedup_pkgs/onnx/common/assertions.h
- Command line
-
hf download hf://datasets/VideoUFO/ResearchData_P1/ScaleDF_rebuttal/python_dedup_pkgs/onnx/common/assertions.h
-
curl -L -o assertions.h https://huggingface.co/datasets/VideoUFO/ResearchData_P1/resolve/main/ScaleDF_rebuttal/python_dedup_pkgs/onnx/common/assertions.h
3.06 kB
| // Copyright (c) ONNX Project Contributors | |
| // | |
| // SPDX-License-Identifier: Apache-2.0 | |
| // ATTENTION: The code in this file is highly EXPERIMENTAL. | |
| // Adventurous users should note that the APIs will probably change. | |
| namespace ONNX_NAMESPACE { | |
| struct assert_error : public std::runtime_error { | |
| public: | |
| explicit assert_error(const std::string& msg) : runtime_error(msg) {} | |
| }; | |
| struct tensor_error : public assert_error { | |
| public: | |
| explicit tensor_error(const std::string& msg) : assert_error(msg) {} | |
| }; | |
| __attribute__((format(printf, 1, 2))) | |
| std::string barf(const char* fmt, ...); | |
| [[noreturn]] void throw_assert_error(std::string& /*msg*/); | |
| [[noreturn]] void throw_tensor_error(std::string& /*msg*/); | |
| } // namespace ONNX_NAMESPACE | |
| // The following is used to prevent MSVC from passing the whole __VA_ARGS__ list | |
| // as the first parameter value to a macro call. | |
| // Note: msg must be a string literal | |
| // The ##__VA_ARGS__ extension removes the trailing comma when __VA_ARGS__ is empty. | |
| // This is supported by GCC, Clang, and MSVC (since VS 2019 16.6). | |