Decorator to make sure we can import `core` from caffe2 (#19273)
authorZafar Takhirov <zaf@fb.com>
Wed, 17 Apr 2019 18:19:19 +0000 (11:19 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 17 Apr 2019 18:22:49 +0000 (11:22 -0700)
commitaad6f978987aa4ec507a06261860e0daea2c6b59
tree035448b7d75ea8c53448ad9fcc97754135646d51
parentf1f31b634d73eb5e260564cb3a4964d29aeecaac
Decorator to make sure we can import `core` from caffe2 (#19273)

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

Some of the CIs are failing if the protobuf is not installed. Protobuf is imported as part of the `caffe2.python.core`, and this adds a skip decorator to avoid running tests that depend on `caffe2.python.core`

Reviewed By: jianyuh

Differential Revision: D14936387

fbshipit-source-id: e508a1858727bbd52c951d3018e2328e14f126be
test/common_utils.py
test/test_quantized.py