Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Error while running text_classification* #72

Closed
melvinj opened this issue Jan 7, 2016 · 2 comments
Closed

Error while running text_classification* #72

melvinj opened this issue Jan 7, 2016 · 2 comments

Comments

@melvinj
Copy link

melvinj commented Jan 7, 2016

Hi,

I'm trying to run the text_classification examples and I get the following error.

TypeError: Input 'values' of 'HistogramSummary' Op has type int64 that does not match expected type of float32.

The stack trace is below:

Traceback (most recent call last):
File "text_classification.py", line 82, in
classifier.fit(X_train, y_train, logdir='/tmp/tf_examples/word_rnn')
File "/usr/local/lib/python2.7/site-packages/skflow/estimators/base.py", line 186, in fit
self._setup_training()
File "/usr/local/lib/python2.7/site-packages/skflow/estimators/base.py", line 119, in _setup_training
tf.histogram_summary("X", self._inp)
File "/usr/local/lib/python2.7/site-packages/tensorflow/python/ops/summary_ops.py", line 39, in histogram_summary
tag=tag, values=values, name=scope)
File "/usr/local/lib/python2.7/site-packages/tensorflow/python/ops/gen_summary_ops.py", line 34, in _histogram_summary
name=name)
File "/usr/local/lib/python2.7/site-packages/tensorflow/python/ops/op_def_library.py", line 405, in apply_op
(prefix, types_lib.as_dtype(input_arg.type).name))
TypeError: Input 'values' of 'HistogramSummary' Op has type int64 that does not match expected type of float32.

Am I doing something wrong? I installed tensorflow and skflow as mentioned in the medium tutorial.

@ilblackdragon
Copy link
Contributor

Hi,

Weirdly I don't get this error, but I've updated histogram addition only for float.
Please try with the current master if it now works for you. Let me know if it works now.

@melvinj
Copy link
Author

melvinj commented Jan 8, 2016

Hi,
It works now. Thanks for the very prompt response.

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

No branches or pull requests

2 participants