tensorflow / skflow

Simplified interface for TensorFlow (mimicking Scikit Learn) for Deep Learning
Apache License 2.0
3.18k stars 441 forks source link

text_classification.py giving error #170

Closed aroradeepak001 closed 8 years ago

aroradeepak001 commented 8 years ago

I am just trying to run this example as it is, It is giving me following error :

File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/framework/ops.py", line 462, in bool raise TypeError("Using a tf.Tensor as a Python bool is not allowed. " TypeError: Using a tf.Tensor as a Python bool is not allowed. Use if t is not None: instead of if t: to test if a tensor is defined, and use the logical TensorFlow ops to test the value of a tensor.

ilblackdragon commented 8 years ago

Hi @aroradeepak001,

Please use skflow from Tensorflow 0.8 - it got moved and already released there. All the issues as such one are fixed there. You can just install Tensorflow 0.8 and import skflow as import tensorflow.contrib.learn as skflow.

aroradeepak001 commented 8 years ago

Hey Thank you for such a quick response , Cheers!!