app.py revision 7760ce56fc3ab4ab8cdc408e29d8ad8b539c417e
1# Copyright 2015 Google Inc. All Rights Reserved. 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14# ============================================================================== 15 16"""Switch between depending on pyglib.app or an OSS replacement.""" 17from __future__ import absolute_import 18from __future__ import division 19from __future__ import print_function 20 21# pylint: disable=g-import-not-at-top 22# pylint: disable=wildcard-import 23from . import control_imports 24if control_imports.USE_OSS and control_imports.OSS_APP: 25 from tensorflow.python.platform.default._app import * 26else: 27 from tensorflow.python.platform.google._app import * 28 29# Import 'flags' into this module 30from tensorflow.python.platform import flags # pylint: disable=unused-import 31