ClikaRT::ops::normal
function
normal()
Tensor normal(
ScalarOrTensor mean,
ScalarOrTensor stddev,
ClikaRT::Span<const ScalarOrTensor> shape,
StreamOrDevice s = {}
)
Normal draws with the given mean and standard deviation.
mean and stddev are scalars or tensors broadcast over shape.
Parameters
mean: the distribution mean (scalar or broadcastable tensor).stddev: the standard deviation (scalar or broadcastable tensor); must be positive.shape: the output shape.s: stream or device; default = the default device.
Returns: a shape-shaped tensor of draws.
Throws
ClikaRT::Error: (INVALID_ARGUMENT) on a non-positivestddevor a non-broadcastable operand.
Declared in ClikaRT/compute/ops.h, line 4056