Merge this TensorRepSet with another TensorRepSet, returning a new TensorRepSet with the union of the two.
(self, other: "TensorRepSet")
| 919 | ) |
| 920 | |
| 921 | def make_union(self, other: "TensorRepSet") -> "TensorRepSet": |
| 922 | """ |
| 923 | Merge this TensorRepSet with another TensorRepSet, returning a new TensorRepSet |
| 924 | with the union of the two. |
| 925 | """ |
| 926 | return TensorRepSet( |
| 927 | self.valid_buffer_layouts | other.valid_buffer_layouts, |
| 928 | self.valid_texture_layouts | other.valid_texture_layouts, |
| 929 | ) |
| 930 | |
| 931 | def is_compatible(self, storage: TensorRepr) -> bool: |
| 932 | """ |