ones_like ========= Returns a new array filled with ones and having the same ``shape`` as an input array ``x``. **Abstract Signature:** ``ones_like(x: array, dtype: Optional[dtype], device: Optional[device])`` .. raw:: html
optax.tree.ones_like
numpy.ma.core.ones_like
keras.ops.ones_like
tf.ones_like
mlx.core.ones_like