NervanaSystems / neon

Intel® Nervana™ reference deep learning framework committed to best performance on all hardware
http://neon.nervanasys.com/docs/latest
Apache License 2.0
3.87k stars 811 forks source link

nlint> TypeError: slice indices must be integers or None or have an __index__ method #409

Open Kolous opened 6 years ago

Kolous commented 6 years ago

I'm trying to run the examples from the tutorial video. Whille running nvis -i model.o -o myplots I get following error. Installed on Fedora 26, sysinstall, python 2.7 (btw. sysinstall doesn't work for python 3.6??).

Traceback (most recent call last): File "/usr/bin/nvis", line 4, in import('pkg_resources').run_script('neon==2.2.0', 'nvis') File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 741, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 1502, in run_script exec(code, namespace, namespace) File "/usr/lib/python2.7/site-packages/neon-2.2.0-py2.7.egg/EGG-INFO/scripts/nvis", line 100, in static_plot(args) File "/usr/lib/python2.7/site-packages/neon-2.2.0-py2.7.egg/EGG-INFO/scripts/nvis", line 77, in static_plot cost_data = h5_cost_data(args.in_file, epoch_axis) File "/usr/lib/python2.7/site-packages/neon-2.2.0-py2.7.egg/neon/visualizations/data.py", line 97, in h5_cost_data x = create_minibatch_x(total_minibatches, minibatch_markers, epoch_axis) File "/usr/lib/python2.7/site-packages/neon-2.2.0-py2.7.egg/neon/visualizations/data.py", line 36, in create_minibatch_x x[last_e:e] = e_idx + (np.arange(float(e_minibatches)) / e_minibatches) TypeError: slice indices must be integers or None or have an index method