cclauss commented on issue #8270: 22 Undefined names in Python code URL: https://github.com/apache/incubator-mxnet/issues/8270#issuecomment-411628132 With the merge of #11982, flake8 (on Python 3) is now down to 10 undefined names: [flake8](http://flake8.pycqa.org) testing of https://github.com/apache/incubator-mxnet on Python 3.7.0 $ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__ ``` ./example/reinforcement-learning/a3c/a3c.py:206:16: F821 undefined name 'robo_data' dataiter = robo_data.RobosimsDataIter('scenes', args.batch_size, args.input_length, web_viz=True) ^ ./example/neural-style/end_to_end/model_vgg19.py:94:17: F821 undefined name 'out' arg_names = out.list_arguments() ^ ./example/neural-style/end_to_end/model_vgg19.py:105:16: F821 undefined name 'out' executor = out.bind(ctx=ctx, args=arg_dict, args_grad=[], grad_req="null") ^ ./example/sparse/factorization_machine/metric.py:111:22: F821 undefined name 'label_zero_num' total_area = label_zero_num * label_one_num ^ ./example/sparse/factorization_machine/metric.py:111:39: F821 undefined name 'label_one_num' total_area = label_zero_num * label_one_num ^ ./example/profiler/profiler_executor.py:89:15: F821 undefined name 'search_plan' sym = search_plan(sym, data=data_shapes) ^ ./example/profiler/profiler_executor.py:89:37: F821 undefined name 'data_shapes' sym = search_plan(sym, data=data_shapes) ^ ./tests/python/unittest/test_engine_import.py:33:13: F821 undefined name 'reload' reload(mxnet) ^ ./tests/nightly/model_backwards_compatibility_check/common.py:216:12: F821 undefined name 'cmp' return cmp(normalize(version1), normalize(version2)) ^ ./docs/mxdoc.py:75:16: F821 undefined name 'root_path' pdf_path = root_path + '/docs/api/r/mxnet-r-reference-manual.pdf' ^ 10 F821 undefined name 'root_path' 10 ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services