Prevent `profile_observer_test` from being run by CPU test (#14168)
authorAldian Fazrihady <aldian@labster.com>
Thu, 6 Dec 2018 06:31:39 +0000 (22:31 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 6 Dec 2018 06:34:29 +0000 (22:34 -0800)
commite27d77815d3dee10fa4d05b03ba1520028157098
treeff4e34a8d66217856124a3fee377be63353dbb1d
parent14fb651b5f458c28d3843824f455acbc3c1e13b2
Prevent `profile_observer_test` from being run by CPU test (#14168)

Summary:
Fix CMakeLists.txt, so the test for CPU won't run profile_observer_test.cc, as currently it only supports GPU
Pull Request resolved: https://github.com/pytorch/pytorch/pull/14168

Differential Revision: D13356274

Pulled By: ezyang

fbshipit-source-id: 7d105f2e18675e5fab129864958148b0f18d582c
caffe2/observers/CMakeLists.txt