SegmentedOperand#
- class cuequivariance.SegmentedOperand(
- segments: list[tuple[int, ...]] | None = None,
- *,
- ndim: int | None = None,
- _dims: dict[int, set[int]] | None = None,
A segmented operand is a list of segment’s shapes.
- classmethod empty_segments(
- num_segments: int,
Create an operand with ndim=0
- classmethod stack(
- operands: list[SegmentedOperand],
Stack a list of operands together.
- copy() SegmentedOperand #
Copy the operand.
- assert_valid()#
Assert that the operand is valid.