"module 'numpy.core.multiarray' has no attribute '_get_ndarray_c_version'")

28 views
Skip to first unread message

Sergio Hernandez

unread,
Jul 6, 2019, 2:30:29 PM7/6/19
to lasagne-users
While compiling the example in github page

In [7]: # create loss function
   ...: prediction = lasagne.layers.get_output(network)
   ...: loss = lasagne.objectives.categorical_crossentropy(prediction, target_var)
   ...: loss = loss.mean() + 1e-4 * lasagne.regularization.regularize_network_params(
   ...:         network, lasagne.regularization.l2)
   ...:
   ...:

The following error showed up

AttributeError: ('The following error happened while compiling the node', DotModulo(A, s, m, A2, s2, m2), '\n', "module 'numpy.core.multiarray' has no attribute '_get_ndarray_c_version'")

I'm using

Python 3.6.8
Theano 0.8.2
Lasange 0.2.dev1

Thanks
Reply all
Reply to author
Forward
0 new messages