Fixes making specs and ndlstm accessible through tf.contrib

Change: 136781876
This commit is contained in:
A. Unique TensorFlower 2016-10-20 16:30:37 -08:00 committed by TensorFlower Gardener
parent 9629e16d89
commit 65e31297f5
11 changed files with 36 additions and 4 deletions

View File

@ -29,12 +29,14 @@ py_library(
"//tensorflow/contrib/lookup:lookup_py", "//tensorflow/contrib/lookup:lookup_py",
"//tensorflow/contrib/losses:losses_py", "//tensorflow/contrib/losses:losses_py",
"//tensorflow/contrib/metrics:metrics_py", "//tensorflow/contrib/metrics:metrics_py",
"//tensorflow/contrib/ndlstm",
"//tensorflow/contrib/opt:opt_py", "//tensorflow/contrib/opt:opt_py",
"//tensorflow/contrib/quantization:quantization_py", "//tensorflow/contrib/quantization:quantization_py",
"//tensorflow/contrib/rnn:rnn_py", "//tensorflow/contrib/rnn:rnn_py",
"//tensorflow/contrib/seq2seq:seq2seq_py", "//tensorflow/contrib/seq2seq:seq2seq_py",
"//tensorflow/contrib/slim", "//tensorflow/contrib/slim",
"//tensorflow/contrib/slim:nets", "//tensorflow/contrib/slim:nets",
"//tensorflow/contrib/specs",
"//tensorflow/contrib/tensor_forest:tensor_forest_py", "//tensorflow/contrib/tensor_forest:tensor_forest_py",
"//tensorflow/contrib/tensor_forest/hybrid:ops_lib", "//tensorflow/contrib/tensor_forest/hybrid:ops_lib",
"//tensorflow/contrib/tensorboard", "//tensorflow/contrib/tensorboard",

View File

@ -45,3 +45,5 @@ from tensorflow.contrib import testing
from tensorflow.contrib import tfprof from tensorflow.contrib import tfprof
from tensorflow.contrib import training from tensorflow.contrib import training
from tensorflow.contrib import util from tensorflow.contrib import util
from tensorflow.contrib.ndlstm import python as ndlstm
from tensorflow.contrib.specs import python as specs

View File

@ -13,6 +13,7 @@ load("//tensorflow:tensorflow.bzl", "tf_py_test")
py_library( py_library(
name = "ndlstm", name = "ndlstm",
srcs = [ srcs = [
"__init__.py",
"python/__init__.py", "python/__init__.py",
"python/lstm1d.py", "python/lstm1d.py",
"python/lstm2d.py", "python/lstm2d.py",

View File

View File

@ -20,7 +20,7 @@ from __future__ import print_function
import numpy as np import numpy as np
import tensorflow as tf import tensorflow as tf
from tensorflow.contrib.ndlstm.python import lstm1d lstm1d = tf.contrib.ndlstm.lstm1d
def _rand(*size): def _rand(*size):

View File

@ -20,8 +20,8 @@ from __future__ import print_function
import numpy as np import numpy as np
import tensorflow as tf import tensorflow as tf
from tensorflow.contrib.ndlstm.python import lstm2d
from tensorflow.python.framework import test_util from tensorflow.python.framework import test_util
lstm2d = tf.contrib.ndlstm.lstm2d
def _rand(*size): def _rand(*size):

View File

@ -19,8 +19,8 @@ from __future__ import print_function
import numpy as np import numpy as np
import tensorflow as tf import tensorflow as tf
from tensorflow.contrib.ndlstm.python import misc
from tensorflow.python.framework import test_util from tensorflow.python.framework import test_util
misc = tf.contrib.ndlstm.misc
def _rand(*size): def _rand(*size):

View File

@ -12,6 +12,7 @@ load("//tensorflow:tensorflow.bzl", "tf_py_test")
py_library( py_library(
name = "specs", name = "specs",
srcs = [ srcs = [
"__init__.py",
"python/__init__.py", "python/__init__.py",
"python/params_ops.py", "python/params_ops.py",
"python/specs.py", "python/specs.py",

View File

View File

@ -0,0 +1,26 @@
# Copyright 2016 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.
# ==============================================================================
"""Init file, giving convenient access to all specs ops."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# pylint: disable=wildcard-import,g-importing-member
from tensorflow.contrib.specs.python.params_ops import *
from tensorflow.contrib.specs.python.specs import *
from tensorflow.contrib.specs.python.specs_lib import *
from tensorflow.contrib.specs.python.specs_ops import *
from tensorflow.contrib.specs.python.summaries import *

View File

@ -20,8 +20,8 @@ from __future__ import print_function
import numpy as np import numpy as np
import tensorflow as tf import tensorflow as tf
from tensorflow.contrib.specs.python import specs
from tensorflow.contrib.specs.python import summaries from tensorflow.contrib.specs.python import summaries
specs = tf.contrib.specs
def _rand(*size): def _rand(*size):