Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/executorch
/ buffer_is_valid
Method
buffer_is_valid
backends/vulkan/utils.py:955–956 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
953
return
len(self.valid_texture_layouts) > 0
954
955
def
buffer_is_valid(self):
956
return
len(self.valid_buffer_layouts) > 0
957
958
def
first_valid_buffer_layout(self):
959
return
list(self.valid_buffer_layouts)[0]
Callers
5
test_empty_repset
Method · 0.95
test_non_empty_repset
Method · 0.95
test_texture_only_repset
Method · 0.95
test_buffer_only_repset
Method · 0.95
test_high_dim_tensor_filters_texture_layouts
Method · 0.80
Calls
no outgoing calls
Tested by
5
test_empty_repset
Method · 0.76
test_non_empty_repset
Method · 0.76
test_texture_only_repset
Method · 0.76
test_buffer_only_repset
Method · 0.76
test_high_dim_tensor_filters_texture_layouts
Method · 0.64