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

Fix test case for dnc util_test.py for TF <=2.5 ,typo and link #218

Open
wants to merge 4 commits into
base: v2
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions sonnet/src/nets/dnc/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@


def get_controller_ctor(controller_name):
"""Returns the constructor for a givn controller name."""
"""Returns the constructor for a given controller name."""
if controller_name == 'LSTM':
return recurrent.LSTM
elif controller_name == 'GRU':
Expand Down Expand Up @@ -99,9 +99,7 @@ def deep_core(control_name,
control_config: Dictionary containing the configuration for the modules.
num_layers: Number of layers.
skip_connections: Boolean that indicates whether to use skip connections.
See documenation for sonnet.DeepRnn in
//learning/deepmind/tensorflow/sonnet/python/modules/basic_rnn.py for more
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thank you for this, I think we can do even better if we use RST to x-link to the actual symbol. Then in our rendered docs (https://sonnet.dev) users can click through to DeepRNN. Concretely, I suggest changing this to:

See documentation for :class:`DeepRNN` for more information.

Copy link
Author

Choose a reason for hiding this comment

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

Thank you for this review. Have made the change in the script.

information.
See documentation for :class:`DeepRNN` for more information.
name: module name.

Returns:
Expand Down