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"""Keras backend API.""" 16 17from __future__ import absolute_import 18from __future__ import division 19from __future__ import print_function 20 21# pylint: disable=redefined-builtin 22from tensorflow.python.keras.backend import abs 23from tensorflow.python.keras.backend import all 24from tensorflow.python.keras.backend import any 25from tensorflow.python.keras.backend import arange 26from tensorflow.python.keras.backend import argmax 27from tensorflow.python.keras.backend import argmin 28from tensorflow.python.keras.backend import backend 29from tensorflow.python.keras.backend import batch_dot 30from tensorflow.python.keras.backend import batch_flatten 31from tensorflow.python.keras.backend import batch_get_value 32from tensorflow.python.keras.backend import batch_normalization 33from tensorflow.python.keras.backend import batch_set_value 34from tensorflow.python.keras.backend import bias_add 35from tensorflow.python.keras.backend import binary_crossentropy 36from tensorflow.python.keras.backend import cast 37from tensorflow.python.keras.backend import cast_to_floatx 38from tensorflow.python.keras.backend import categorical_crossentropy 39from tensorflow.python.keras.backend import clear_session 40from tensorflow.python.keras.backend import clip 41from tensorflow.python.keras.backend import concatenate 42from tensorflow.python.keras.backend import constant 43from tensorflow.python.keras.backend import conv1d 44from tensorflow.python.keras.backend import conv2d 45from tensorflow.python.keras.backend import conv2d_transpose 46from tensorflow.python.keras.backend import conv3d 47from tensorflow.python.keras.backend import cos 48from tensorflow.python.keras.backend import count_params 49from tensorflow.python.keras.backend import ctc_batch_cost 50from tensorflow.python.keras.backend import ctc_decode 51from tensorflow.python.keras.backend import ctc_label_dense_to_sparse 52from tensorflow.python.keras.backend import dot 53from tensorflow.python.keras.backend import dropout 54from tensorflow.python.keras.backend import dtype 55from tensorflow.python.keras.backend import elu 56from tensorflow.python.keras.backend import epsilon 57from tensorflow.python.keras.backend import equal 58from tensorflow.python.keras.backend import eval 59from tensorflow.python.keras.backend import exp 60from tensorflow.python.keras.backend import expand_dims 61from tensorflow.python.keras.backend import eye 62from tensorflow.python.keras.backend import flatten 63from tensorflow.python.keras.backend import floatx 64from tensorflow.python.keras.backend import foldl 65from tensorflow.python.keras.backend import foldr 66from tensorflow.python.keras.backend import function 67from tensorflow.python.keras.backend import gather 68from tensorflow.python.keras.backend import get_session 69from tensorflow.python.keras.backend import get_uid 70from tensorflow.python.keras.backend import get_value 71from tensorflow.python.keras.backend import gradients 72from tensorflow.python.keras.backend import greater 73from tensorflow.python.keras.backend import greater_equal 74from tensorflow.python.keras.backend import hard_sigmoid 75from tensorflow.python.keras.backend import image_data_format 76from tensorflow.python.keras.backend import in_test_phase 77from tensorflow.python.keras.backend import in_top_k 78from tensorflow.python.keras.backend import in_train_phase 79from tensorflow.python.keras.backend import int_shape 80from tensorflow.python.keras.backend import is_sparse 81from tensorflow.python.keras.backend import l2_normalize 82from tensorflow.python.keras.backend import learning_phase 83from tensorflow.python.keras.backend import less 84from tensorflow.python.keras.backend import less_equal 85from tensorflow.python.keras.backend import log 86from tensorflow.python.keras.backend import manual_variable_initialization 87from tensorflow.python.keras.backend import map_fn 88from tensorflow.python.keras.backend import max 89from tensorflow.python.keras.backend import maximum 90from tensorflow.python.keras.backend import mean 91from tensorflow.python.keras.backend import min 92from tensorflow.python.keras.backend import minimum 93from tensorflow.python.keras.backend import moving_average_update 94from tensorflow.python.keras.backend import name_scope 95from tensorflow.python.keras.backend import ndim 96from tensorflow.python.keras.backend import normalize_batch_in_training 97from tensorflow.python.keras.backend import not_equal 98from tensorflow.python.keras.backend import one_hot 99from tensorflow.python.keras.backend import ones 100from tensorflow.python.keras.backend import ones_like 101from tensorflow.python.keras.backend import permute_dimensions 102from tensorflow.python.keras.backend import placeholder 103from tensorflow.python.keras.backend import pool2d 104from tensorflow.python.keras.backend import pool3d 105from tensorflow.python.keras.backend import pow 106from tensorflow.python.keras.backend import print_tensor 107from tensorflow.python.keras.backend import prod 108from tensorflow.python.keras.backend import random_binomial 109from tensorflow.python.keras.backend import random_normal 110from tensorflow.python.keras.backend import random_normal_variable 111from tensorflow.python.keras.backend import random_uniform 112from tensorflow.python.keras.backend import random_uniform_variable 113from tensorflow.python.keras.backend import relu 114from tensorflow.python.keras.backend import repeat 115from tensorflow.python.keras.backend import repeat_elements 116from tensorflow.python.keras.backend import reset_uids 117from tensorflow.python.keras.backend import reshape 118from tensorflow.python.keras.backend import resize_images 119from tensorflow.python.keras.backend import resize_volumes 120from tensorflow.python.keras.backend import reverse 121from tensorflow.python.keras.backend import rnn 122from tensorflow.python.keras.backend import round 123from tensorflow.python.keras.backend import separable_conv2d 124from tensorflow.python.keras.backend import set_epsilon 125from tensorflow.python.keras.backend import set_floatx 126from tensorflow.python.keras.backend import set_image_data_format 127from tensorflow.python.keras.backend import set_learning_phase 128from tensorflow.python.keras.backend import set_session 129from tensorflow.python.keras.backend import set_value 130from tensorflow.python.keras.backend import shape 131from tensorflow.python.keras.backend import sigmoid 132from tensorflow.python.keras.backend import sign 133from tensorflow.python.keras.backend import sin 134from tensorflow.python.keras.backend import softmax 135from tensorflow.python.keras.backend import softplus 136from tensorflow.python.keras.backend import softsign 137from tensorflow.python.keras.backend import sparse_categorical_crossentropy 138from tensorflow.python.keras.backend import spatial_2d_padding 139from tensorflow.python.keras.backend import spatial_3d_padding 140from tensorflow.python.keras.backend import sqrt 141from tensorflow.python.keras.backend import square 142from tensorflow.python.keras.backend import squeeze 143from tensorflow.python.keras.backend import stack 144from tensorflow.python.keras.backend import std 145from tensorflow.python.keras.backend import stop_gradient 146from tensorflow.python.keras.backend import sum 147from tensorflow.python.keras.backend import switch 148from tensorflow.python.keras.backend import tanh 149from tensorflow.python.keras.backend import temporal_padding 150from tensorflow.python.keras.backend import to_dense 151from tensorflow.python.keras.backend import transpose 152from tensorflow.python.keras.backend import truncated_normal 153from tensorflow.python.keras.backend import update 154from tensorflow.python.keras.backend import update_add 155from tensorflow.python.keras.backend import update_sub 156from tensorflow.python.keras.backend import var 157from tensorflow.python.keras.backend import variable 158from tensorflow.python.keras.backend import zeros 159from tensorflow.python.keras.backend import zeros_like 160 161del absolute_import 162del division 163del print_function 164