tf.experimental.numpy.random.randn
Stay organized with collections
Save and categorize content based on your preferences.
TensorFlow variant of NumPy's random.randn
.
tf.experimental.numpy.random.randn(
*args
)
Returns samples from a normal distribution.
Uses tf.random_normal
.
Args:
*args: The shape of the output array.
Returns:
An ndarray with shape args
and dtype float64
.
See the NumPy documentation for numpy.random.randn
.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2023-03-17 UTC.
[null,null,["Last updated 2023-03-17 UTC."],[],[],null,["# tf.experimental.numpy.random.randn\n\n\u003cbr /\u003e\n\n|------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.9.3/tensorflow/python/ops/numpy_ops/np_random.py#L50-L62) |\n\nTensorFlow variant of NumPy's `random.randn`. \n\n tf.experimental.numpy.random.randn(\n *args\n )\n\nReturns samples from a normal distribution.\n\nUses `tf.random_normal`.\n\nArgs:\n\\*args: The shape of the output array.\n\nReturns:\nAn ndarray with shape `args` and dtype `float64`.\n\nSee the NumPy documentation for [`numpy.random.randn`](https://numpy.org/doc/1.16/reference/generated/numpy.random.randn.html)."]]