Try Theano dev version. It fix many problems. Fred
Le 20 oct. 2016 12:07, "Willie Pan" <[email protected]> a écrit : > Hi all, I try to build a CNN and run it. > But during predict() the following error message pop out and I'm not sure > how to deal with it. > Could you guys help me? Thank you so much. > > *The final error message (full error messages are in the end of this > article):* > rval = __import__(module_name, {}, {}, [module_name]) > ImportError: ('The following error happened while compiling the node', > CorrMM{ha > lf, (4, 4)}(convolution2d_input_1, Subtensor{::, ::, ::int64, ::int64}.0), > '\n', > 'DLL load failed: \xa7\xe4\xa4\xa3\xa8\xec\xab\x > fc\xa9w\xaa\xba\xbc\xd2\xb2\xd5 > \xa1C', '[CorrMM{half, (4, 4)}(convolution2d_input_1, <TensorType(float32, > 4D)>) > ]') > > > *My environment is:* > > Theano version: 0.8.2 > > Configuration: > > [global] > > openmp=False > > device=cpu > > optimizer = fast_run > > exception_verbosity=high > > > > Keras version: 1.1.0 > > { > > "image_dim_ordering": "th", > > "epsilon": 1e-07, > > "floatx": "float32", > > "backend": "theano" > > } > > > > Python environment: > > Python 2.7.12 |Anaconda 4.2.0 (64-bit)| (default, Jun 29 2016, 11:07:13) > [MSC v. > > 1500 64 bit (AMD64)] on win32 > > Type "help", "copyright", "credits" or "license" for more information. > > Anaconda is brought to you by Continuum Analytics. > > Please check out: http://continuum.io/thanks and https://anaconda.org > > > *Followings are the full error message: * > ... > File "C:\Anaconda2\lib\site-packages\keras\models.py", line 671, in > predict > return self.model.predict(x, batch_size=batch_size, verbose=verbose) > File "C:\Anaconda2\lib\site-packages\keras\engine\training.py", line > 1176, in > predict > self._make_predict_function() > File "C:\Anaconda2\lib\site-packages\keras\engine\training.py", line > 734, in _ > make_predict_function > **kwargs) > File "C:\Anaconda2\lib\site-packages\keras\backend\theano_backend.py", > line 72 > 7, in function > return Function(inputs, outputs, updates=updates, **kwargs) > File "C:\Anaconda2\lib\site-packages\keras\backend\theano_backend.py", > line 71 > 3, in __init__ > **kwargs) > File "C:\Anaconda2\lib\site-packages\theano\compile\function.py", line > 320, in > function > output_keys=output_keys) > File "C:\Anaconda2\lib\site-packages\theano\compile\pfunc.py", line > 479, in pf > unc > output_keys=output_keys) > File "C:\Anaconda2\lib\site-packages\theano\compile\function_module.py", > line > 1777, in orig_function > defaults) > File "C:\Anaconda2\lib\site-packages\theano\compile\function_module.py", > line > 1641, in create > input_storage=input_storage_lists, storage_map=storage_map) > File "C:\Anaconda2\lib\site-packages\theano\gof\link.py", line 690, in > make_th > unk > storage_map=storage_map)[:3] > File "C:\Anaconda2\lib\site-packages\theano\gof\vm.py", line 1003, in > make_all > > no_recycling)) > File "C:\Anaconda2\lib\site-packages\theano\gof\op.py", line 970, in > make_thun > k > no_recycling) > File "C:\Anaconda2\lib\site-packages\theano\gof\op.py", line 879, in > make_c_th > unk > output_storage=node_output_storage) > File "C:\Anaconda2\lib\site-packages\theano\gof\cc.py", line 1200, in > make_thu > nk > keep_lock=keep_lock) > File "C:\Anaconda2\lib\site-packages\theano\gof\cc.py", line 1143, in > __compil > e__ > keep_lock=keep_lock) > File "C:\Anaconda2\lib\site-packages\theano\gof\cc.py", line 1595, in > cthunk_f > actory > key=key, lnk=self, keep_lock=keep_lock) > File "C:\Anaconda2\lib\site-packages\theano\gof\cmodule.py", line 1144, > in mod > ule_from_key > module = lnk.compile_cmodule(location) > File "C:\Anaconda2\lib\site-packages\theano\gof\cc.py", line 1506, in > compile_ > cmodule > preargs=preargs) > File "C:\Anaconda2\lib\site-packages\theano\gof\cmodule.py", line 2215, > in com > pile_str > return dlimport(lib_filename) > File "C:\Anaconda2\lib\site-packages\theano\gof\cmodule.py", line 300, > in dlim > port > rval = __import__(module_name, {}, {}, [module_name]) > ImportError: ('The following error happened while compiling the node', > CorrMM{ha > lf, (4, 4)}(convolution2d_input_1, Subtensor{::, ::, ::int64, ::int64}.0), > '\n', > 'DLL load failed: \xa7\xe4\xa4\xa3\xa8\xec\xab\x > fc\xa9w\xaa\xba\xbc\xd2\xb2\xd5 > \xa1C', '[CorrMM{half, (4, 4)}(convolution2d_input_1, <TensorType(float32, > 4D)>) > ]') > > -- > > --- > You received this message because you are subscribed to the Google Groups > "theano-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- --- You received this message because you are subscribed to the Google Groups "theano-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
