TensorDistribution<T>.filled constructor
TensorDistribution<T>.filled (
- TensorShape shape,
- Distribution<
T> distribution
Constructing a distribution where all indices have identical scalar distribution.
Implementation
factory TensorDistribution.filled(
TensorShape shape,
Distribution<T> distribution,
) {
return TensorDistribution<T>.generate(
shape,
(shape, i) => distribution,
);
}