Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What's wrong with theano package? #73

Open
pendave opened this issue May 18, 2021 · 3 comments
Open

What's wrong with theano package? #73

pendave opened this issue May 18, 2021 · 3 comments

Comments

@pendave
Copy link

pendave commented May 18, 2021

Hello. please help.

WARNING (theano.tensor.blas): Using NumPy C-API based implementation for BLAS functions. Traceback (most recent call last): File "E:\MyPython\punctuator给无标点符号的文本段落添加标点分句.py", line 3, in <module> p = Punctuator('Demo-Europarl-EN.pcl') File "C:\Program Files\Python38\lib\site-packages\punctuator\punc.py", line 204, in __init__ net, _ = models.load(model_file, 1, x) File "C:\Program Files\Python38\lib\site-packages\punctuator\models.py", line 69, in load net = Model( File "C:\Program Files\Python38\lib\site-packages\punctuator\models.py", line 254, in __init__ logging.info("Number of parameters is %d", sum(np.prod(p.shape.eval()) for p in self.params)) File "C:\Program Files\Python38\lib\site-packages\punctuator\models.py", line 254, in <genexpr> logging.info("Number of parameters is %d", sum(np.prod(p.shape.eval()) for p in self.params)) File "C:\Program Files\Python38\lib\site-packages\theano\gof\graph.py", line 522, in eval self._fn_cache[inputs] = theano.function(inputs, self) File "C:\Program Files\Python38\lib\site-packages\theano\compile\function.py", line 306, in function fn = pfunc(params=inputs, File "C:\Program Files\Python38\lib\site-packages\theano\compile\pfunc.py", line 483, in pfunc return orig_function(inputs, cloned_outputs, mode, File "C:\Program Files\Python38\lib\site-packages\theano\compile\function_module.py", line 1841, in orig_function fn = m.create(defaults) File "C:\Program Files\Python38\lib\site-packages\theano\compile\function_module.py", line 1714, in create _fn, _i, _o = self.linker.make_thunk( File "C:\Program Files\Python38\lib\site-packages\theano\gof\link.py", line 697, in make_thunk return self.make_all(input_storage=input_storage, File "C:\Program Files\Python38\lib\site-packages\theano\gof\vm.py", line 1087, in make_all thunks.append(node.op.make_thunk(node, File "C:\Program Files\Python38\lib\site-packages\theano\gof\op.py", line 954, in make_thunk return self.make_c_thunk(node, storage_map, compute_map, File "C:\Program Files\Python38\lib\site-packages\theano\gof\op.py", line 857, in make_c_thunk outputs = cl.make_thunk(input_storage=node_input_storage, File "C:\Program Files\Python38\lib\site-packages\theano\gof\cc.py", line 1215, in make_thunk cthunk, module, in_storage, out_storage, error_storage = self.__compile__( File "C:\Program Files\Python38\lib\site-packages\theano\gof\cc.py", line 1153, in __compile__ thunk, module = self.cthunk_factory(error_storage, File "C:\Program Files\Python38\lib\site-packages\theano\gof\cc.py", line 1623, in cthunk_factory module = get_module_cache().module_from_key( File "C:\Program Files\Python38\lib\site-packages\theano\gof\cmodule.py", line 1189, in module_from_key module = lnk.compile_cmodule(location) File "C:\Program Files\Python38\lib\site-packages\theano\gof\cc.py", line 1520, in compile_cmodule module = c_compiler.compile_str( File "C:\Program Files\Python38\lib\site-packages\theano\gof\cmodule.py", line 2420, in compile_str return dlimport(lib_filename) File "C:\Program Files\Python38\lib\site-packages\theano\gof\cmodule.py", line 317, in dlimport rval = __import__(module_name, {}, {}, [module_name]) ImportError: DLL load failed while importing m60a068f5e4bfe48344c4e636f49e249da0f0a2df673bf7ffb57b86690cf56e0d: 找不到指定的模块。

@Uvir127
Copy link

Uvir127 commented Dec 24, 2021

I am getting the same error. Did you find a solution to this?

@khushbookk
Copy link

Got solution? facing the same issue.

@khushbookk
Copy link

    print("Number of parameters is %d" % sum(np.prod(p.get_value().shape) for p in self.params))

I think this should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants