torch.distributions.extendedShape
function extendedShape(sampleShape: readonly number[], batchShape: readonly number[], eventShape: readonly number[]): number[]Compute the extended shape for sampling. Combines sample_shape, batch_shape, and event_shape.
Parameters
sampleShapereadonly number[]batchShapereadonly number[]eventShapereadonly number[]
Returns
number[]