pytorch/torch/lib/THD/base/Exceptions.hpp
Teng Li 4f94d82c7f clang-format on c10d and THD (#13138)
Summary:
clang-format-6 run on all cpp,cc,c,cu,cxx,hpp,hxx,h files under /c10d and /thd
Pull Request resolved: https://github.com/pytorch/pytorch/pull/13138

Differential Revision: D10857742

Pulled By: teng-li

fbshipit-source-id: f99bc62f56019c05acdfa8e8c4f0db34d23b4c52
2018-10-25 14:16:47 -07:00

11 lines
203 B
C++

#pragma once
#include <iostream>
#define HANDLE_EXCEPTIONS try {
#define END_HANDLE_EXCEPTIONS \
} \
catch (std::exception & e) { \
THError(e.what()); \
}