[PYTHON] Tensorflow API: tf.truncated_normal

https://www.tensorflow.org/api_docs/python/tf/truncated_normal

Overview

Generate a tensor randomly extracted from the truncated normal distribution of ± 2σ.

truncated_normal(
    shape,
    mean=0.0,
    stddev=1.0,
    dtype=tf.float32,
    seed=None,
    name=None
)

Example of use

import tensorflow as tf

x = tf.truncated_normal(shape=[2, 2], mean=0.0, stddev=1.0, dtype=tf.float32)
with tf.Session() as sess:
    x.eval()

Recommended Posts

Tensorflow API: tf.truncated_normal
Tensorflow API: FLAGS
Tensorflow API: tf.reverse
TensorFlow API memo
[TF] About Tensorflow API
TensorFlow API memo (Python)
Logo detection using TensorFlow Object Detection API
Tensorflow Glossary
tensorflow mnist_deep.py
TensorFlow tutorial tutorial
Find polynomial approximations using TensorFlow 2.x Low-level API