From ccbefa1a4ee27d0288b1dc973239e4242feab13a Mon Sep 17 00:00:00 2001 From: Jianwei Xie Date: Thu, 18 May 2017 15:35:34 -0700 Subject: [PATCH] Seal learn_runner. PiperOrigin-RevId: 156488276 --- tensorflow/contrib/learn/__init__.py | 2 +- .../learn/python/learn/learn_runner_lib.py | 30 +++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 tensorflow/contrib/learn/python/learn/learn_runner_lib.py diff --git a/tensorflow/contrib/learn/__init__.py b/tensorflow/contrib/learn/__init__.py index aec4911e293a79..c06343b731d3de 100644 --- a/tensorflow/contrib/learn/__init__.py +++ b/tensorflow/contrib/learn/__init__.py @@ -88,7 +88,7 @@ from tensorflow.contrib.learn.python.learn import * # pylint: enable=wildcard-import -from tensorflow.contrib.learn.python.learn import learn_runner +from tensorflow.contrib.learn.python.learn import learn_runner_lib as learn_runner from tensorflow.python.util.all_util import remove_undocumented diff --git a/tensorflow/contrib/learn/python/learn/learn_runner_lib.py b/tensorflow/contrib/learn/python/learn/learn_runner_lib.py new file mode 100644 index 00000000000000..7d9b1c7716f0ab --- /dev/null +++ b/tensorflow/contrib/learn/python/learn/learn_runner_lib.py @@ -0,0 +1,30 @@ +# Copyright 2017 The TensorFlow Authors. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============================================================================== +"""Utilities to run and tune an Experiment. + +@@run +@@tune +""" +from __future__ import absolute_import +from __future__ import division +from __future__ import print_function + +from tensorflow.contrib.learn.python.learn.learn_runner import * # pylint: disable=wildcard-import + +from tensorflow.python.util.all_util import remove_undocumented + +_allowed_symbols = [] + +remove_undocumented(__name__, _allowed_symbols)