Simulating Uniform Distribution with Tensor Flow

Overview


The randomUniform function generates random numbers drawn from the Uniform Distribution.

Implementation



let tensor = tf.randomUniform([20])
let tensor2 = tf.randomUniform([20], -1, 1)
				
Try it!

Contents