Spaces:
Sleeping
Sleeping
// Copyright (c) ONNX Project Contributors | |
/* | |
* SPDX-License-Identifier: Apache-2.0 | |
*/ | |
do { \ | |
std::cerr << ONNX_NAMESPACE::MakeString(__VA_ARGS__); \ | |
abort(); \ | |
} while (false) | |
do { \ | |
std::cerr << ex.what() << std::endl; \ | |
abort(); \ | |
} while (false) | |
// Macros to disable the copy and/or assignment methods | |
// These are usually placed in the private: declarations for a class. | |
ONNX_DISALLOW_COPY(TypeName); \ | |
ONNX_DISALLOW_ASSIGNMENT(TypeName) | |
TypeName(TypeName&&) = delete; \ | |
TypeName& operator=(TypeName&&) = delete | |
ONNX_DISALLOW_COPY_AND_ASSIGNMENT(TypeName); \ | |
ONNX_DISALLOW_MOVE(TypeName) | |