-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix test case for dnc util_test.py for TF <=2.5 ,typo and link #218
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
base: v2
Are you sure you want to change the base?
Changes from 1 commit
a39a4f9
352089c
13c4dcc
4c4e6e8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -151,9 +151,15 @@ def testDifferentOutputSizeBreaks(self): | |
lin_b = linear.Linear(output_size_b, name='lin_b') | ||
input_a = tf.random.uniform([batch_size, input_size]) | ||
input_b = tf.random.uniform([batch_size, input_size]) | ||
with self.assertRaisesIncompatibleShapesError( | ||
tf.errors.InvalidArgumentError): | ||
util.apply_linear((input_a, input_b), (lin_a, lin_b)) | ||
if tf.__version__>="2.5.0": | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
with self.assertRaisesIncompatibleShapesError( | ||
tf.errors.InvalidArgumentError): | ||
util.apply_linear((input_a, input_b), (lin_a, lin_b)) | ||
else: | ||
with self.assertRaises( | ||
tf.errors.InvalidArgumentError): | ||
util.apply_linear((input_a, input_b), (lin_a, lin_b)) | ||
|
||
|
||
@parameterized.parameters( | ||
{ | ||
|
There was a problem hiding this comment.
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:
There was a problem hiding this comment.
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.