f18c55e373aeddcecd3f1af90347d9a418d964f5,sonnet/src/optimizers/adam_test.py,,,#,138

Before Change


    return optimizer_tests.WrappedTFOptimizer(tf.optimizers.Adam(**kwargs))


if __name__ == "__main__":
  // tf.enable_v2_behavior()
  tf.test.main()

After Change


from sonnet.src.optimizers import optimizer_tests
import tensorflow as tf

CONFIGS = optimizer_tests.named_product(learning_rate=(0.1, 0.01, 0.001),
                                        beta_1=(0.9, 0.99, 0.999),
                                        beta_2=(0.9, 0.99, 0.999),
                                        epsilon=(1e-8,),
                                        seed=(28, 2, 90))


class ComparisonTest(optimizer_tests.AbstractFuzzTest):
  Ensures Sonnet optimizers have equivalent behavior to TensorFlow.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


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:


Project Name: deepmind/sonnet
Commit Name: a31c623cb6c537dd10043d65e0bb39a00b89356d
Time: 2019-10-24
Author: tomhennigan@google.com
File Name: sonnet/src/optimizers/momentum_test.py
Class Name:
Method Name: