Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/executorch
/ any_is_empty
Method
any_is_empty
backends/vulkan/utils.py:1255–1259 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
1253
return
self.vals.append(val)
1254
1255
def
any_is_empty(self) -> bool:
1256
if
len(self.vals) == 0:
1257
return
True
1258
1259
return
any(tensor_repr.is_empty()
for
tensor_repr in self.vals)
1260
1261
1262
class
OpRepSets:
Callers
3
test_any_is_empty_true
Method · 0.95
test_any_is_empty_false
Method · 0.95
test_any_is_empty_no_elements
Method · 0.95
Calls
1
is_empty
Method · 0.45
Tested by
3
test_any_is_empty_true
Method · 0.76
test_any_is_empty_false
Method · 0.76
test_any_is_empty_no_elements
Method · 0.76