Cannot Import mxnet from graphlab

User 5293 | 6/15/2016, 6:57:13 PM

Hi ,

I am trying to execute : from graphlab import mxnet which is giving the following error:

Taceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name mxnet

but when I do :

import mxnet

it imports mxnet but gets stuck at :

dataiter = mx.io.SFrameIter(data, data_field=features, label_field='output',
                            data_name='data', label_name='lr_label',
                            batch_size=1)

giving error :

AttributeError: 'module' object has no attribute 'SFrameIter:smile: 

I am not sure what is wrong, any suggestions:smile: ?

Comments

User 5293 | 6/15/2016, 11:15:42 PM

I solved the problem by deleting Open source version of mxnet and reinstalling GraphLab


User 940 | 6/20/2016, 6:25:36 PM

Hi @amrfarid140 ,

I'm glad you figured out a solution. Feel free to ping us if you have any more questions.

Cheers! -Piotr