Mutli-nGraph Backend Unit tests
mbrookhart opened this issue · comments
Matthew Brookhart commented
Acceptance Criteria:
- NGraph unit tests run the standard operator unit tests with the new context from #289
- MXNet test files are not modified.
- tests nGraph needs to skip are handled in the nGraph test files.
- CI is updated to use new context tests.
Christian Convey commented
A few (mutually exclusive) ideas for how to solve this:
- Add a feature to MXNet itself in which the default context can be overridden via an environment variable.
- Modify the test scripts so that CMake's "configure" system tweaks which particular hardcoded context is used.
Matthew Brookhart commented
Haven't gotten to fleshing this one out yet, mxnet.test_utils.set_default_context
can do this. The basic idea is, say, make a test_ngraph_cpu.py file, have a mxnet.test_utils.set_default_context(mx.ngraph("CPU"))
, a from test_operator import *
, and an if __name__=='__main__': import nose nose.runmodule()