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

Ridiculous documentation #17

Open
AppyFizzy opened this issue Apr 27, 2018 · 0 comments
Open

Ridiculous documentation #17

AppyFizzy opened this issue Apr 27, 2018 · 0 comments

Comments

@AppyFizzy
Copy link

Please improve your documentation. this is irritating.

and let me know the solution for "TypeError: Expected bool passed to parameter 'dims' of op 'Reverse', got [-1] of type 'list' instead."

I am using python 3.5 version and tensorflow-1.0.0 version. I have installed tensorflow with CPU support only.

C:\Chatbot-from-Movie-Dialogue-master>python Chatbot_Attention.py
Can we make this quick? Roxanne Korrine and Andrew Barrett are having an incredibly horrendous public break- up on the quad. Again.
Well, I thought we'd start with pronunciation, if that's okay with you.

Well, I thought we'd start with pronunciation, if that's okay with you.
Not the hacking and gagging and spitting part. Please.

Not the hacking and gagging and spitting part. Please.
Okay... then how 'bout we try out some French cuisine. Saturday? Night?

You're asking me out. That's so cute. What's your name again?
Forget it.

No, no, it's my fault -- we didn't have a proper introduction ---
Cameron.

221616
221616
can we make this quick roxanne korrine and andrew barrett are having an incredibly horrendous public break up on the quad again
well i thought we would start with pronunciation if that is okay with you

well i thought we would start with pronunciation if that is okay with you
not the hacking and gagging and spitting part please

not the hacking and gagging and spitting part please
okay then how about we try out some french cuisine saturday night

you are asking me out that is so cute that is your name again
forget it

no no it is my fault we did not have a proper introduction
cameron

16.0
19.0
24.0
32.0
58.0

of questions: 138335

of answers: 138335

% of data used: 62.419999999999995%
Size of total vocab: 45618
Size of vocab we will use: 8092
8096
8096
8096
8096
138335
138335
Total number of words: 2334533
Number of times is used: 92436
Percent of words that are : 3.96%
138335
138335

[7645, 2615]
[5230, 4733, 4733, 4733, 2740, 6471, 2991, 5230, 3754, 3491, 647, 6277, 4990, 5839, 8094]

[5230, 4959]
[1211, 7456, 7793, 5378, 6471, 7662, 307, 8095, 5121, 1211, 8094]

[2465, 2693]
[1331, 590, 7162, 4811, 1211, 1835, 5378, 1322, 8094]

Traceback (most recent call last):
File "C:\Users\Apurva\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 490, in apply_op
preferred_dtype=default_dtype)
File "C:\Users\Apurva\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\framework\ops.py", line 669, in convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "C:\Users\Apurva\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\framework\constant_op.py", line 176, in _constant_tensor_conversion_function
return constant(v, dtype=dtype, name=name)
File "C:\Users\Apurva\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\framework\constant_op.py", line 165, in constant
tensor_util.make_tensor_proto(value, dtype=dtype, shape=shape, verify_shape=verify_shape))
File "C:\Users\Apurva\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\framework\tensor_util.py", line 367, in make_tensor_proto
_AssertCompatible(values, dtype)
File "C:\Users\Apurva\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\framework\tensor_util.py", line 302, in _AssertCompatible
(dtype.name, repr(mismatch), type(mismatch).name))
TypeError: Expected bool, got -1 of type 'int' instead.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "Chatbot_Attention.py", line 591, in
tf.reverse(input_data, [-1]), targets, keep_prob, batch_size, sequence_length, len(answers_vocab_to_int),
File "C:\Users\Apurva\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\ops\gen_array_ops.py", line 2513, in reverse
name=name)
File "C:\Users\Apurva\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 499, in apply_op
repr(values), type(values).name))
TypeError: Expected bool passed to parameter 'dims' of op 'Reverse', got [-1] of type 'list' instead.

C:\Chatbot-from-Movie-Dialogue-master>

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

1 participant