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