Closed DiegoGLagash closed 8 years ago
Hi @DiegoGLagash skflow have moved inside tensorflow.
If you update your tensorflow to 0.8 you can use it via tf.contrib.learn
. This issue is fixed there.
I'll also update this repo to use skflow from inside tensorflow.
I'm running a sample from a tutorial, and I'm getting this error inside skflow:
Traceback (most recent call last): File "titanic.py", line 26, in
tflr.fit(X_train, y_train)
File "/Users/diegog/Source/tensorflow/lib/python2.7/site-packages/skflow/estimators/base.py", line 227, in fit
feed_params_fn=self._data_feeder.get_feed_params)
File "/Users/diegog/Source/tensorflow/lib/python2.7/site-packages/skflow/trainer.py", line 146, in train
if summaries:
File "/Users/diegog/Source/tensorflow/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 475, in nonzero
raise TypeError("Using a
tf.Tensor
as a Pythonbool
is not allowed. " TypeError: Using atf.Tensor
as a Pythonbool
is not allowed. Useif t is not None:
instead ofif t:
to test if a tensor is defined, and use the logical TensorFlow ops to test the value of a tensor.I've tried with the development branch and the error persist. Any idea?