mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
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
11 lines
203 B
C++
11 lines
203 B
C++
#pragma once
|
|
|
|
#include <iostream>
|
|
|
|
#define HANDLE_EXCEPTIONS try {
|
|
#define END_HANDLE_EXCEPTIONS \
|
|
} \
|
|
catch (std::exception & e) { \
|
|
THError(e.what()); \
|
|
}
|