1 #ifndef C10_UTIL_LOGGING_IS_GOOGLE_GLOG_H_ 2 #define C10_UTIL_LOGGING_IS_GOOGLE_GLOG_H_ 19 #if !defined(__CUDACC__) && !defined(C10_USE_MINIMAL_GLOG) 20 #include <glog/stl_logging.h> 29 #else // !defined(__CUDACC__) && !defined(C10_USE_MINIMAL_GLOG) 36 #define INSTANTIATE_FOR_CONTAINER(container) \ 37 template <class... Types> \ 38 ostream& operator<<(ostream& out, const container<Types...>&) { \ 42 INSTANTIATE_FOR_CONTAINER(vector)
43 INSTANTIATE_FOR_CONTAINER(map)
44 INSTANTIATE_FOR_CONTAINER(set)
45 #undef INSTANTIATE_FOR_CONTAINER 50 #include <glog/logging.h> 52 #endif // C10_UTIL_LOGGING_IS_GOOGLE_GLOG_H_