Skip to content

Commit

Permalink
Fix CI failure related to SGD optimizer. #1
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 276556571
  • Loading branch information
csvillalta authored and cweill committed Oct 28, 2019
1 parent d582022 commit 001d298
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions adanet/autoensemble/estimator_v2_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ def tearDown(self):
"candidate_pool":
lambda head, feature_columns, optimizer: lambda config: {
"dnn":
tf.estimator.DNNEstimator(
tf.compat.v2.estimator.DNNEstimator(
head=head,
feature_columns=feature_columns,
optimizer=optimizer,
hidden_units=[3],
config=config),
"linear":
tf.estimator.LinearEstimator(
tf.compat.v2.estimator.LinearEstimator(
head=head,
feature_columns=feature_columns,
optimizer=optimizer,
Expand Down
4 changes: 2 additions & 2 deletions adanet/autoensemble/keras_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ class KerasTest(parameterized.TestCase, tf.test.TestCase):
"candidate_pool":
lambda head, feature_columns, optimizer: {
"dnn":
tf.estimator.DNNEstimator(
tf.compat.v2.estimator.DNNEstimator(
head=head,
feature_columns=feature_columns,
optimizer=optimizer,
hidden_units=[3]),
"linear":
tf.estimator.LinearEstimator(
tf.compat.v2.estimator.LinearEstimator(
head=head,
feature_columns=feature_columns,
optimizer=optimizer),
Expand Down

0 comments on commit 001d298

Please sign in to comment.