Further modifications to improve test_maxout.py runtime.