I tried to run the python unittests using command , “python -m pytest tests/python/unittest/”. But getting Segmentation fault (core dumped) type of errors.
It will be difficult to run the entire test suite locally as the CI pipeline runs through many different configurations of hardware and docker image. However, you can run some tests manually.
Here’s some more information on the continuous integration pipeline run by MxNet
(I suspect the difference between the above line and the analogous one in the readme may be a legacy artifact as the runtime_function method does not take any arguments.)
For a list of platforms to run your code, run ci/build.py
For a list of python test suites, take a look at the functions defined in ci/docker/runtime_functions.sh.
For example, unittest_ubuntu_python3_cpu would run the CPU unit tests with Python3 on Ubuntu. You would want to run this on an associated docker image e.g. docker_base_cpu.