1# Copyright 2016 The TensorFlow Authors. 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"""Labels for TensorFlow.""" 16 17from __future__ import absolute_import 18from __future__ import division 19from __future__ import print_function 20 21from tensorflow.contrib.labeled_tensor.python.ops import core as _core 22from tensorflow.contrib.labeled_tensor.python.ops import io_ops as _io_ops 23from tensorflow.contrib.labeled_tensor.python.ops import nn 24from tensorflow.contrib.labeled_tensor.python.ops import ops as _ops 25from tensorflow.contrib.labeled_tensor.python.ops import sugar as _sugar 26 27# pylint: disable=invalid-name 28 29# Core types. 30Axis = _core.Axis 31Axes = _core.Axes 32LabeledTensor = _core.LabeledTensor 33 34as_axis = _core.as_axis 35convert_to_labeled_tensor = _core.convert_to_labeled_tensor 36 37identity = _core.identity 38slice = _core.slice_function # pylint: disable=redefined-builtin 39transpose = _core.transpose 40expand_dims = _core.expand_dims 41align = _core.align 42 43axis_order_scope = _core.axis_order_scope 44check_axis_order = _core.check_axis_order 45impose_axis_order = _core.impose_axis_order 46AxisOrderError = _core.AxisOrderError 47 48define_unary_op = _core.define_unary_op 49define_binary_op = _core.define_binary_op 50define_reduce_op = _ops.define_reduce_op 51 52abs = _core.abs_function # pylint: disable=redefined-builtin 53neg = _core.neg 54sign = _core.sign 55reciprocal = _core.reciprocal 56square = _core.square 57round = _core.round_function # pylint: disable=redefined-builtin 58sqrt = _core.sqrt 59rsqrt = _core.rsqrt 60exp = _core.exp 61log = _core.log 62ceil = _core.ceil 63floor = _core.floor 64cos = _core.cos 65sin = _core.sin 66tan = _core.tan 67acos = _core.acos 68asin = _core.asin 69atan = _core.atan 70lgamma = _core.lgamma 71digamma = _core.digamma 72erf = _core.erf 73erfc = _core.erfc 74logical_not = _core.logical_not 75tanh = _core.tanh 76sigmoid = _core.sigmoid 77 78add = _core.add 79sub = _core.sub 80mul = _core.mul 81div = _core.div 82mod = _core.mod 83pow = _core.pow_function # pylint: disable=redefined-builtin 84 85equal = _core.equal 86greater = _core.greater 87greater_equal = _core.greater_equal 88not_equal = _core.not_equal 89less = _core.less 90less_equal = _core.less_equal 91logical_and = _core.logical_and 92logical_or = _core.logical_or 93logical_xor = _core.logical_xor 94 95maximum = _core.maximum 96minimum = _core.minimum 97squared_difference = _core.squared_difference 98igamma = _core.igamma 99igammac = _core.igammac 100zeta = _core.zeta 101polygamma = _core.polygamma 102 103select = _ops.select 104concat = _ops.concat 105pack = _ops.pack 106unpack = _ops.unpack 107reshape = _ops.reshape 108rename_axis = _ops.rename_axis 109random_crop = _ops.random_crop 110map_fn = _ops.map_fn 111foldl = _ops.foldl 112squeeze = _ops.squeeze 113matmul = _ops.matmul 114tile = _ops.tile 115pad = _ops.pad 116constant = _ops.constant 117zeros_like = _ops.zeros_like 118ones_like = _ops.ones_like 119cast = _ops.cast 120verify_tensor_all_finite = _ops.verify_tensor_all_finite 121boolean_mask = _ops.boolean_mask 122where = _ops.where 123 124reduce_all = _ops.reduce_all 125reduce_any = _ops.reduce_any 126reduce_logsumexp = _ops.reduce_logsumexp 127reduce_max = _ops.reduce_max 128reduce_mean = _ops.reduce_mean 129reduce_min = _ops.reduce_min 130reduce_prod = _ops.reduce_prod 131reduce_sum = _ops.reduce_sum 132 133batch = _ops.batch 134shuffle_batch = _ops.shuffle_batch 135 136FixedLenFeature = _io_ops.FixedLenFeature 137parse_example = _io_ops.parse_example 138parse_single_example = _io_ops.parse_single_example 139placeholder = _io_ops.placeholder 140 141ReshapeCoder = _sugar.ReshapeCoder 142