pytorch
6bb33d93 - disable the format library in C10 (#60052)

Commit
3 years ago
disable the format library in C10 (#60052) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/60052 Introduction: We would like to use the minimal implementation of C10 for our our SGX port of pytorch. This would include disabling signal handlers and the fmt library. Problem : When C10_SUPPORTS_SIGNAL_HANDLER is disabled there is no reason to have fmt enabled as it is used only in stacktraceSignalHandler. The problem is that fmt/format.h is included regardless whether C10_SUPPORTS_SIGNAL_HANDLER is disabled or not. Solution : Move the #include <fmt/format.h> inside the #ifdef section of code where C10_SUPPORTS_SIGNAL_HANDLER is checked. Test Plan: Run the pytorch unit tests. Reviewed By: h397wang, LiJihang Differential Revision: D29022628 fbshipit-source-id: 638cf98381585cd6059129d9c5a65d9e6a841575
Author
Dimitrije Jankov
Parents
Loading