e164c3574da160fb72fc962947a783fa299424e3,sonnet/src/batch_apply_test.py,,,#,66
Before Change
assert len(x.shape) == 2, "Requires rank 2 input."
return x + 1.
if __name__ == "__main__":
// tf.enable_v2_behavior()
tf.test.main()
After Change
from sonnet.src import test_utils
import tensorflow as tf
EXAMPLE_INPUTS = (
((1, 2, 3), 1),
((1, 2, 3), 2),
((1, 2, 3, 4), 3),
((1, 2, 3, 4, 5, 6), 4),
)
class BatchApplyTest(test_utils.TestCase):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: deepmind/sonnet
Commit Name: e164c3574da160fb72fc962947a783fa299424e3
Time: 2019-07-07
Author: tomhennigan@google.com
File Name: sonnet/src/batch_apply_test.py
Class Name:
Method Name:
Project Name: deepmind/sonnet
Commit Name: f18c55e373aeddcecd3f1af90347d9a418d964f5
Time: 2020-01-27
Author: tomhennigan@google.com
File Name: sonnet/src/optimizers/adam_test.py
Class Name:
Method Name:
Project Name: deepmind/sonnet
Commit Name: f18c55e373aeddcecd3f1af90347d9a418d964f5
Time: 2020-01-27
Author: tomhennigan@google.com
File Name: sonnet/src/optimizers/rmsprop_test.py
Class Name:
Method Name: