MCPcopy Create free account
hub / github.com/pytorch/executorch / make_intersect

Method make_intersect

backends/vulkan/utils.py:911–919  ·  view source on GitHub ↗

Merge this TensorRepr with another TensorRepr, returning a new TensorRepr with the intersection of the two.

(self, other: "TensorRepSet")

Source from the content-addressed store, hash-verified

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 """

Calls 1

TensorRepSetClass · 0.85