KZKY memo

自分用メモ.

TensorFlow: Python API: Constants Sequences and Random Values

記事を書いている時点では,v6.0なので注意

Constant Value Tensors

  • tf.zeros
  • tf.zeros_like
  • tf.ones
  • tf.ones_like
  • tf.fill
  • tf.constant

特に注意点なし

sample code

Sequences

  • tf.linspace
  • tf.range

特に注意点なし

sample code

Random Tensors

  • tf.random_normal
  • tf.truncated_normal
  • tf.random_uniform
  • tf.random_shuffle
  • tf.set_random_seed

tf.set_random_seedは,graph-levelでseedをセットしてくれる.

特に注意点なし

sample code