[caffe2][tpx] log to stderr (#42162)

Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/42162

Test Plan: CI

Reviewed By: mrshenli

Differential Revision: D22791440

fbshipit-source-id: 14f16cd7a94a57161c5724177b518527f486232d
This commit is contained in:
Sandeep Kumar Pani 2020-07-28 07:48:47 -07:00 committed by Facebook GitHub Bot
parent 0571cfd875
commit e179966248

View file

@ -18,7 +18,8 @@ load_tests = load_tests
nGPUs = torch.cuda.device_count()
if not TEST_CUDA:
print('CUDA not available, skipping tests')
import sys
print('CUDA not available, skipping tests', file=sys.stderr)
TestCase = object # noqa: F811