torch.expand_error_incompatible
export type expand_error_incompatible<
From extends number,
To extends number,
> = ErrorShape<`expand_error_incompatible<from=${From}, to=${To}>`>;Fromextends numberToextends numberExpand incompatible shape error. Occurs when trying to expand a tensor to an incompatible shape.
Examples
const a = torch.zeros(3, 4); // [3, 4]
const b = a.expand(2, 4); // ERROR: can't expand dim 0 from 3 to 2
// b.shape is expand_error_incompatible<3, 2>