torch.SameShapeRule export type SameShapeRule = 'same'; Same shape rule - both inputs must have identical shape.