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

Cast uploaded.keys() to list before indexing in an example #51

Merged
merged 1 commit into from May 24, 2018

Conversation

RaghavaDhanya
Copy link
Contributor

In examples/colab/tf_hub_generative_image_module.ipynb
as of python 3 keys() method of dictionary returns a view(DictKeys) object as documented here and doesn't support indexing. Currently python 3 throws TypeError: 'dict_keys' object does not support indexing, when ran in colab directly from github(link) . Casting to list will work both in python 2 and 3.

In examples/colab/tf_hub_generative_image_module.ipynb
as of python 3 keys() method of dictionary returns a view(DictKeys) object and doesn't support indexing
@RaghavaDhanya RaghavaDhanya changed the title Cast uploaded.keys() to list before indexing in a example Cast uploaded.keys() to list before indexing in an example May 16, 2018
@svsgoogle
Copy link
Contributor

Thanks for this!!

@svsgoogle svsgoogle merged commit dd4ab8f into tensorflow:master May 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants