pytorch/modules/observers
Sebastian Messmer 6706e9af19 Make C10_MOBILE consistent with how feature macros are usually used (#17481)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17481

Usually, feature macros are either defined or undefined and checked accordingly.
C10_MOBILE was a weird special case that was always defined but either defined to 1 or to 0.

This caused a lot of confusion for me when trying to disable something from mobile build and it also disabled it
from the server build (because I was using ifdef). Also, I found a place in the existing code base that made
that wrong assumption and used the macro wrongly, see https://fburl.com/y4icohts

Reviewed By: dzhulgakov

Differential Revision: D14214825

fbshipit-source-id: f3a155b6d43d334e8839e2b2e3c40ed2c773eab6
2019-02-27 17:57:51 -08:00
..
CMakeLists.txt Don't install PDB for Windows static build of caffe2_observers (#16420) 2019-01-27 12:29:49 -08:00
macros.h set up c10 scaffolding. Move macros proper first. 2018-09-24 11:09:59 -07:00
net_observer_reporter_print.cc Windows shared build (#13550) 2018-11-16 12:16:28 -08:00
net_observer_reporter_print.h set up c10 scaffolding. Move macros proper first. 2018-09-24 11:09:59 -07:00
net_observer_reporter.h set up c10 scaffolding. Move macros proper first. 2018-09-24 11:09:59 -07:00
observer_config.cc Caffe2 module update: move observers as well as binaries. (#2145) 2018-03-06 14:45:21 -08:00
observer_config.h set up c10 scaffolding. Move macros proper first. 2018-09-24 11:09:59 -07:00
perf_observer.cc Make C10_MOBILE consistent with how feature macros are usually used (#17481) 2019-02-27 17:57:51 -08:00
perf_observer.h set up c10 scaffolding. Move macros proper first. 2018-09-24 11:09:59 -07:00