torch.CumulativeOptions
export interface CumulativeOptions<OutShape extends Shape = Shape> {
/** Data type of the output. If not specified, inferred from input. */
dtype?: DType;
/** Pre-allocated output tensor. Must have compatible shape. */
out?: Tensor<OutShape>;
}OutShapeextends Shapedtype(DType)optional- – Data type of the output. If not specified, inferred from input.
out(Tensor<OutShape>)optional- – Pre-allocated output tensor. Must have compatible shape.
Options for cumulative operations (cumsum, cumprod)