diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-04-02 20:50:39 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-04-02 20:53:09 -0700 |
commit | 38e0139329482d8e44629dea2e87853808eacd0d (patch) | |
tree | ffe852a504bee857821eac9f05f5ca8f939929f2 /tensorflow/contrib/__init__.py | |
parent | fa2e70d7fae8466c4006bd29334a3cc440ee6d3a (diff) |
Windows: Enable tensorflow/contrib in Bazel build (Second try)
This reverts commit 4e108ef30d7cd7ae5e1c550ec5ae27e79b8c6e39.
PiperOrigin-RevId: 191391075
Diffstat (limited to 'tensorflow/contrib/__init__.py')
-rw-r--r-- | tensorflow/contrib/__init__.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tensorflow/contrib/__init__.py b/tensorflow/contrib/__init__.py index a8e05df708..1c5b00f92e 100644 --- a/tensorflow/contrib/__init__.py +++ b/tensorflow/contrib/__init__.py @@ -1,3 +1,4 @@ +# pylint: disable=g-import-not-at-top # Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -18,6 +19,8 @@ from __future__ import absolute_import from __future__ import division from __future__ import print_function +import os + # Add projects here, they will show up under tf.contrib. from tensorflow.contrib import batching from tensorflow.contrib import bayesflow @@ -84,7 +87,8 @@ from tensorflow.contrib import tpu from tensorflow.contrib import training from tensorflow.contrib import util from tensorflow.contrib.eager.python import tfe as eager -from tensorflow.contrib.lite.python import lite +if os.name != "nt": + from tensorflow.contrib.lite.python import lite from tensorflow.contrib.optimizer_v2 import optimizer_v2_symbols as optimizer_v2 from tensorflow.contrib.receptive_field import receptive_field_api as receptive_field from tensorflow.contrib.remote_fused_graph import pylib as remote_fused_graph @@ -94,6 +98,7 @@ from tensorflow.contrib.summary import summary from tensorflow.python.util.lazy_loader import LazyLoader ffmpeg = LazyLoader("ffmpeg", globals(), "tensorflow.contrib.ffmpeg") +del os del LazyLoader del absolute_import |