RandLikeΒΆ
Returns a tensor with the same size as input that is filled with random numbers from a uniform distribution.
Abstract Signature:
RandLike(input: Tensor, dtype = None)
JAX (Core)
API:
jax.random.uniformStrategy: Plugin (inject_prng)
NumPy
API:
np.random.random_sampleStrategy: Macro 'np.random.random_sample({input}.shape)'
Keras
API:
keras.random.uniformStrategy: Macro 'keras.random.uniform({input}.shape, dtype={dtype})'
TensorFlow
API:
tf.random.uniformStrategy: Macro 'tf.random.uniform({input}.shape, dtype={dtype})'
Apple MLX
API:
mlx.core.random.uniformStrategy: Macro 'mlx.core.random.uniform({input}.shape, dtype={dtype})'
Flax NNX
API:
jax.random.uniformStrategy: Plugin (inject_prng)