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

Method make_union

backends/vulkan/utils.py:921–929  ·  view source on GitHub ↗

Merge this TensorRepSet with another TensorRepSet, returning a new TensorRepSet with the union of the two.

(self, other: "TensorRepSet")

Source from the content-addressed store, hash-verified

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

Callers 2

test_make_unionMethod · 0.95
pick_storage_for_reduceFunction · 0.80

Calls 1

TensorRepSetClass · 0.85

Tested by 1

test_make_unionMethod · 0.76