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

Method is_empty

backends/vulkan/utils.py:903–909  ·  view source on GitHub ↗

A TensorRepSet is "empty" if there are no valid representations of the tensor.

(self)

Source from the content-addressed store, hash-verified

901 )
902
903 def is_empty(self) -> bool:
904 """
905 A TensorRepSet is "empty" if there are no valid representations of the tensor.
906 """
907 return (
908 len(self.valid_buffer_layouts) == 0 and len(self.valid_texture_layouts) == 0
909 )
910
911 def make_intersect(self, other: "TensorRepSet") -> "TensorRepSet":
912 """

Callers 6

make_tensor_reprMethod · 0.95
is_constrainedMethod · 0.95
test_empty_repsetMethod · 0.95
test_non_empty_repsetMethod · 0.95

Calls

no outgoing calls

Tested by 4

test_empty_repsetMethod · 0.76
test_non_empty_repsetMethod · 0.76