#ifndef C10_UTIL_FBCODEMAPS_H_ #define C10_UTIL_FBCODEMAPS_H_ // Map typedefs so that we can use folly's F14 maps in fbcode without // taking a folly dependency. #ifdef FBCODE_CAFFE2 #include #include #else #include #include #endif namespace c10 { #ifdef FBCODE_CAFFE2 template using FastMap = folly::F14FastMap; template using FastSet = folly::F14FastSet; #else template using FastMap = std::unordered_map; template using FastSet = std::unordered_set; #endif } // namespace c10 #endif // C10_UTIL_FBCODEMAPS_H_