torch.TensorCreator
export interface TensorCreator {
<const S extends readonly number[]>(...shape: S): ShapedTensor<S>;
(
shape: number[],
options?: { dtype?: string; requires_grad?: boolean }
): ShapedTensor<DynamicShape>;
}Type for tensor creation with variadic shape args.