• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2015 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"""Public API for tf.initializer namespace."""
16
17from __future__ import absolute_import
18from __future__ import division
19from __future__ import print_function
20
21from tensorflow.python.ops import init_ops
22from tensorflow.python.ops import variables as _variables
23
24# variable initializers
25zeros = init_ops.zeros_initializer
26ones = init_ops.ones_initializer
27constant = init_ops.constant_initializer
28random_uniform = init_ops.random_uniform_initializer
29random_normal = init_ops.random_normal_initializer
30truncated_normal = init_ops.truncated_normal_initializer
31uniform_unit_scaling = init_ops.uniform_unit_scaling_initializer
32variance_scaling = init_ops.variance_scaling_initializer
33orthogonal = init_ops.orthogonal_initializer
34identity = init_ops.identity_initializer
35
36# variable initializer ops
37variables = _variables.variables_initializer
38global_variables = _variables.global_variables_initializer
39local_variables = _variables.local_variables_initializer
40
41# Seal API.
42del absolute_import
43del division
44del print_function
45del init_ops
46del _variables
47