W3cubDocs

/TensorFlow Python

Module: tf.initializers

Defined in tensorflow/tools/api/generator/api/initializers/__init__.py.

Imports for Python API.

This file is MACHINE GENERATED! Do not edit. Generated by: tensorflow/tools/api/generator/create_python_api.py script.

Classes

class constant: Initializer that generates tensors with constant values.

class identity: Initializer that generates the identity matrix.

class ones: Initializer that generates tensors initialized to 1.

class orthogonal: Initializer that generates an orthogonal matrix.

class random_normal: Initializer that generates tensors with a normal distribution.

class random_uniform: Initializer that generates tensors with a uniform distribution.

class truncated_normal: Initializer that generates a truncated normal distribution.

class uniform_unit_scaling: Initializer that generates tensors without scaling variance.

class variance_scaling: Initializer capable of adapting its scale to the shape of weights tensors.

class zeros: Initializer that generates tensors initialized to 0.

Functions

global_variables(...): Returns an Op that initializes global variables.

local_variables(...): Returns an Op that initializes all local variables.

variables(...): Returns an Op that initializes a list of variables.

Other Members

__cached__

__loader__

__spec__

© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/initializers