RandIntLikeΒΆ
Returns a tensor with the same shape as Tensor input filled with random integers.
Abstract Signature:
RandIntLike(input: Tensor, low: int = 0, high: int)
JAX (Core)
API:
jax.random.randintStrategy: Plugin (inject_prng)
NumPy
API:
np.random.randintStrategy: Macro 'np.random.randint({low}, {high}, size={input}.shape)'
Keras
API:
keras.random.randintStrategy: Macro 'keras.random.randint({input}.shape, minval={low}, maxval={high})'
TensorFlow
API:
tf.random.uniformStrategy: Macro 'tf.random.uniform({input}.shape, minval={low}, maxval={high}, dtype=tf.int64)'
Apple MLX
API:
mlx.core.random.randintStrategy: Macro 'mlx.core.random.randint({low}, {high}, {input}.shape)'