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

Unable to run sorry. could you release the steps from initial environment to running the code? #3

Open
dongdyang opened this issue Jul 19, 2018 · 1 comment

Comments

@dongdyang
Copy link

dongdyang commented Jul 19, 2018

My environment is set to the same as the author.

However, I still met this problem. Unable to fix it.
Could you release the steps from initial environment to running the code?
Thanks!

m_cost, _ = theano.scan(fn=merge_cost,
                     sequences=[network_output_softmax, target_values.T, l_mask.input_var.T],
                     outputs_info=T.constant(0))

When I run the code, the error information is as followings:
Learnableness: [True, True, False]
Using 0.001 for off_slope.
Traceback (most recent call last):
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevd.py", line 1664, in
main()
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevd.py", line 1658, in main
globals = debugger.run(setup['file'], None, None, is_module)
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevd.py", line 1068, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/Users/dongdyang/PycharmProjects/time-lstm/main.py", line 491, in
main(NUM_EPOCHS)
File "/Users/dongdyang/PycharmProjects/time-lstm/main.py", line 273, in main
outputs_info=T.constant(0))
File "/usr/local/lib/python3.6/site-packages/theano/scan_module/scan.py", line 1071, in scan
scan_outs = local_op(scan_inputs)
File "/usr/local/lib/python3.6/site-packages/theano/gof/op.py", line 615, in call
node = self.make_node(inputs, kwargs)
File "/usr/local/lib/python3.6/site-packages/theano/scan_module/scan_op.py", line 572, in make_node
inner_sitsot_out.type.dtype))
ValueError: When compiling the inner function of scan the following error has been encountered: The initial state (
outputs_info
in scan nomenclature) of variable IncSubtensor{Set;:int64:}.0 (argument number 3) has dtype int8, while the result of the inner function (fn) has dtype float64. This can happen if the inner function of scan results in an upcast or downcast.

@zyody
Copy link
Collaborator

zyody commented Jul 22, 2018

@tonnkie

It seems that you are using python3.6. And the error seems about the upcast or downcast of different dtypes (int8 and float64).
Can you try python2.7 please? Since we tested our code with python2.7.

More details of our environment:
pip list:

Package Version

Lasagne 0.2.dev1
nltk 3.2.1
numpy 1.14.3
pandas 0.18.1
pip 10.0.1
python-dateutil 2.7.3
pytz 2018.4
scikit-learn 0.18
scipy 1.1.0
setuptools 39.2.0
six 1.11.0
Theano 0.9.0
virtualenv 16.0.0


python:

Python 2.7.9 (default, Mar 1 2015, 12:57:24)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.


lsb_release -a:

Distributor ID: Debian
Description: Debian GNU/Linux 8.2 (jessie)
Release: 8.2
Codename: jessie


cat /proc/version:

Linux version 3.16.0-4-amd64 ([email protected]) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.7-ckt11-1+deb8u3 (2015-08-04)


cat /usr/local/cuda/version.txt:

CUDA Version 8.0.44


cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2:

#define CUDNN_MAJOR 5
#define CUDNN_MINOR 1
#define CUDNN_PATCHLEVEL 3

#define CUDNN_VERSION (CUDNN_MAJOR * 1000 + CUDNN_MINOR * 100 + CUDNN_PATCHLEVEL)

#include "driver_types.h"


If some environments are missing, you can tell me. And I will show more initial environments.

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

2 participants