commit | f768233a1cb9fa0b2508a6bf8144a4d9d8230c03 | [log] [tgz] |
---|---|---|
author | Luke Yeager <lukeyeager@users.noreply.github.com> | Thu Apr 20 11:16:34 2017 -0700 |
committer | Facebook Github Bot <facebook-github-bot@users.noreply.github.com> | Thu Apr 20 11:38:11 2017 -0700 |
tree | a7595c467478d72a6b9a1144780534f14a68621e | |
parent | 41b7217898f6b238c25e26d1662d24afb2cc6ed2 [diff] |
Fix a data_workers test Summary: This is a global variable which can be incremented by other tests. Before: ``` $ pytest -v caffe2/python/data_workers_test.py ... caffe2/python/data_workers_test.py::DataWorkersTest::testGracefulShutdown PASSED caffe2/python/data_workers_test.py::DataWorkersTest::testNonParallelModel FAILED ============================================= FAILURES ============================================== _______________________________ DataWorkersTest.testNonParallelModel ________________________________ self = <data_workers_test.DataWorkersTest testMethod=testNonParallelModel> def testNonParallelModel(self): model = cnn.CNNModelHelper(name="test") coordinator = data_workers.init_data_input_workers( model, ["data", "label"], dummy_fetcher, 32, 2, ) > self.assertEqual(coordinator._fetcher_id_seq, 2) E AssertionError: 4 != 2 caffe2/python/data_workers_test.py:38: AssertionError ----------------- Closes https://github.com/caffe2/caffe2/pull/211 Differential Revision: D4916591 Pulled By: Yangqing fbshipit-source-id: 281f12d7f02dbd0ce0932024cf1f16cd12130112
Caffe2 is a lightweight, modular, and scalable deep learning framework. Building on the original Caffe, Caffe2 is designed with expression, speed, and modularity in mind.
Please use Github issues (https://github.com/caffe2/caffe2/issues) to ask questions, report bugs, and request new features.
Please participate in our survey (https://www.surveymonkey.com/r/caffe2). We will send you information about new releases and special developer events/webinars.
Caffe2 is released under the BSD 2-Clause license.
Target | Status |
---|---|
Linux | |
Android | |
iOS | |
Linux + MKL |