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

Conversation

abhilash1910
Copy link

Changes addressed:

  • In DNC, util_test.py, assertRaisesIncompatibleShapesError is present for TF>=2.5 .Added conditions so that TF<2.5 test case is passed. (assertRaises)
  • Typo and link correction in dnc control.py

@google-cla google-cla bot added the cla: yes label Sep 6, 2021
@abhilash1910 abhilash1910 changed the title Fix test case for dnc utils_test.py for TF <=2.5 ,typo and links Fix test case for dnc util_test.py for TF <=2.5 ,typo and link Sep 6, 2021
Copy link
Collaborator

@tomhennigan tomhennigan left a comment

Choose a reason for hiding this comment

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

Thanks for the PR.

with self.assertRaisesIncompatibleShapesError(
tf.errors.InvalidArgumentError):
util.apply_linear((input_a, input_b), (lin_a, lin_b))
if tf.__version__>="2.5.0":
Copy link
Collaborator

Choose a reason for hiding this comment

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

in general we only maintain compatibility with the latest release of TensorFlow 2, so I would prefer not to merge the change in this file.

Copy link
Author

Choose a reason for hiding this comment

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

Hi @tomhennigan , Thank you for the review. Will revert this to the original version.

@@ -100,7 +100,7 @@ def deep_core(control_name,
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.

@abhilash1910
Copy link
Author

Hi @tomhennigan ,
I have made the changes .Could you please review the changes and let me know if any other changes are required?

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.

2 participants