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

Is wide_n_deep compatible with python3.5? #3177

Closed
mijung-kim opened this issue Jul 4, 2016 · 2 comments
Closed

Is wide_n_deep compatible with python3.5? #3177

mijung-kim opened this issue Jul 4, 2016 · 2 comments
Labels
stat:awaiting tensorflower Status - Awaiting response from tensorflower type:bug Bug

Comments

@mijung-kim
Copy link

GitHub issues are for bugs / installation problems / feature requests.
For general support from the community, see StackOverflow.
To make bugs and feature requests more easy to find and organize, we close issues that are deemed
out of scope for GitHub Issues and point people to StackOverflow.

For bugs or installation issues, please provide the following information.
The more information you provide, the more easily we will be able to offer
help and advice.

Environment info

Operating System: Ubuntu 14/04

Installed version of CUDA and cuDNN:
(please attach the output of ls -l /path/to/cuda/lib/libcud*):

If installed from binary pip package, provide:

  1. Which pip package you installed.
  2. The output from python -c "import tensorflow; print(tensorflow.__version__)".

If installed from sources, provide the commit hash:

Steps to reproduce

  1. run wide_n_deep.py on python 3.5
    2.
    3.

What have you tried?

Logs or other output that would be helpful

(If logs are large, please upload as attachment).
TypeError: unsupported operand type(s) for +: 'dict_items' and 'dict_items'

This is because python3.5 does not support + between dict_items. I worked around using dict.copy(), but still get error and could proceed. Do you have plan to release python 3.5 version in near future?

@ghost
Copy link

ghost commented Jul 6, 2016

in wide_n_deep_tutorial.py, change the following line:
feature_cols = dict(continuous_cols.items() + categorical_cols.items())
to
feature_cols = {**continuous_cols , **categorical_cols}
this change makes wide_n_deep_tutorial.py compatible with Python 3.x.
Now simply run it like:
python3.5 wide_n_deep_tutorial.py --model_type=wide

note that the wide_n_deep option (--model_type=wide_n_deep) still has an error due to a compatibility issue in dnn_linear_combined.py

@aselle aselle added the bug label Jul 7, 2016
@aselle
Copy link
Contributor

aselle commented Jul 7, 2016

@hengtze could you fix this?

@aselle aselle added the stat:awaiting tensorflower Status - Awaiting response from tensorflower label Jul 7, 2016
@aselle aselle added type:bug Bug and removed bug labels Feb 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat:awaiting tensorflower Status - Awaiting response from tensorflower type:bug Bug
Projects
None yet
Development

No branches or pull requests

2 participants