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

Removed some unused variables and fixed a formatting error. #10688

Merged
merged 2 commits into from
Jul 19, 2018
Merged

Removed some unused variables and fixed a formatting error. #10688

merged 2 commits into from
Jul 19, 2018

Conversation

gabrieldemarmiesse
Copy link
Contributor

@gabrieldemarmiesse gabrieldemarmiesse commented Jul 15, 2018

Summary

The exception e isn't used and layer_id is redefined later.
Also when the ValueError was raised, one would get the following error instead:

TypeError: len() takes exactly one argument (2 given)

Related Issues

PR Overview

  • This PR requires new unit tests [y/n] (make sure tests are included)
  • This PR requires to update the documentation [y/n] (make sure the docs are up-to-date)
  • This PR is backwards compatible [y/n]
  • This PR changes the current API [y/n] (all API changes need to be approved by fchollet)

@gabrieldemarmiesse gabrieldemarmiesse changed the title Removed some unused variables. Removed some unused variables and fixed a formatting error. Jul 15, 2018
@@ -102,7 +102,6 @@ def model_to_dot(model,

# Connect nodes with edges.
for layer in layers:
layer_id = str(id(layer))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds it would be better to remove the definition on line 110, not this one?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right! My bad.

@fchollet fchollet merged commit 75114fe into keras-team:master Jul 19, 2018
@gabrieldemarmiesse gabrieldemarmiesse deleted the cleaning_stuff_3 branch September 18, 2018 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants