Merge this TensorRepr with another TensorRepr, returning a new TensorRepr with the intersection of the two.
(self, other: "TensorRepSet")
| 909 | ) |
| 910 | |
| 911 | def make_intersect(self, other: "TensorRepSet") -> "TensorRepSet": |
| 912 | """ |
| 913 | Merge this TensorRepr with another TensorRepr, returning a new TensorRepr |
| 914 | with the intersection of the two. |
| 915 | """ |
| 916 | return TensorRepSet( |
| 917 | self.valid_buffer_layouts & other.valid_buffer_layouts, |
| 918 | self.valid_texture_layouts & other.valid_texture_layouts, |
| 919 | ) |
| 920 | |
| 921 | def make_union(self, other: "TensorRepSet") -> "TensorRepSet": |
| 922 | """ |