View source on GitHub

Create a random variable for Laplace.

See Laplace for more details.


Original Docstring for Distribution

Construct Laplace distribution with parameters loc and scale.

The parameters loc and scale must be shaped in a way that supports broadcasting (e.g., loc / scale is a valid operation).

loc Floating point tensor which characterizes the location (center) of the distribution.
scale Positive floating point tensor which characterizes the spread of the distribution.
allow_nan_stats Python bool, default True. When True, statistics (e.g., mean, mode, variance) use the value 'NaN' to indicate the result is undefined. When False, an exception is raised if one or more of the statistic's batch members are undefined.
name Python str name prefixed to Ops created by this class.

TypeError if loc and scale are of different dtype.