camrongodbout / TensorFlow-in-a-Nutshell

The repo for the fast and easy guide to the most popular deep learning framework in the world.

Home Page:camron.xyz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: __init__() got an unexpected keyword argument 'shape'

ryanguest opened this issue · comments

When running the example I get:

TypeError: __init__() got an unexpected keyword argument 'shape'

Easily fixed by changing:

dense_shape=[df[k].size, 1])

to

shape=[df[k].size, 1])

nice, what version of python and version of TF are you using?

$ python -c "import sys; print(sys.version)"

2.7.6 (default, Oct 26 2016, 20:30:19) 
[GCC 4.8.4]

$ python -c 'import tensorflow as tf; print(tf.__version__)'

1.0.1
commented

WARNING:tensorflow:From wide.py:64: calling init (from tensorflow.contrib.learn.python.learn.estimators.dnn_linear_combined) with fix_global_step_increment_bug=False is deprecated and will be removed after 2017-04-15.

commented

But in Python3.6, you should use dense_shape but not shape.