Skip to content

Commit

Permalink
Handle missing contrib import
Browse files Browse the repository at this point in the history
  • Loading branch information
cweill committed Sep 19, 2019
1 parent 269a406 commit 4e49cc8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions adanet/core/estimator_distributed_test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,14 @@
# pylint: disable=g-direct-tensorflow-import

# Contrib
from tensorflow.contrib.boosted_trees.estimator_batch.estimator import CoreGradientBoostedDecisionTreeEstimator
from tensorflow.contrib.boosted_trees.proto import learner_pb2
from tensorflow.contrib.boosted_trees.python.utils import losses as bt_losses
try:
from tensorflow.contrib.boosted_trees.estimator_batch.estimator import CoreGradientBoostedDecisionTreeEstimator
from tensorflow.contrib.boosted_trees.proto import learner_pb2
from tensorflow.contrib.boosted_trees.python.utils import losses as bt_losses
except ImportError:
# Not much we can do here except skip the test.
pass

from tensorflow.python.ops import partitioned_variables
from tensorflow.python.training import session_manager as session_manager_lib
from tensorflow_estimator.python.estimator.canned import head as head_lib
Expand Down

0 comments on commit 4e49cc8

Please sign in to comment.