@@ -79,7 +79,7 @@ def forward(self, x: torch.Tensor, grid: torch.Tensor) -> torch.Tensor:
7979
8080# Covers lowering of a standalone custom op to a buffer-backed tosa.CUSTOM.
8181# Checks the emitted custom node carries the expected operator, domain, and buffer descriptors.
82- def test_new_custom_op_lowers_to_tosa_custom_buffer_shader ():
82+ def test_new_custom_op_vgf_lowers_to_tosa_custom_buffer_shader ():
8383 if shutil .which ("glslc" ) is None :
8484 pytest .skip ("glslc not found" )
8585 register_test_threes_library_ops ()
@@ -105,7 +105,7 @@ def test_new_custom_op_lowers_to_tosa_custom_buffer_shader():
105105
106106# Covers replacing aten.add with a shader-backed custom op.
107107# Checks the rewritten node lowers to tosa.CUSTOM with storage-buffer descriptors.
108- def test_replacement_op_lowers_to_tosa_custom_shader ():
108+ def test_replacement_op_vgf_lowers_to_tosa_custom_shader ():
109109 if shutil .which ("glslc" ) is None :
110110 pytest .skip ("glslc not found" )
111111 register_test_shader_library_ops ()
@@ -132,7 +132,7 @@ def test_replacement_op_lowers_to_tosa_custom_shader():
132132
133133# Covers the in-tree grid-sampler rewrite path.
134134# Checks grid_sampler_2d.default lowers to tosa.CUSTOM with the Vulkan shader domain.
135- def test_in_tree_grid_sampler_lowers_to_tosa_custom ():
135+ def test_in_tree_grid_sampler_vgf_lowers_to_tosa_custom ():
136136 edge_model = to_edge (
137137 export (_GridSampleModule (), (torch .randn (1 , 3 , 8 , 8 ), torch .randn (1 , 4 , 4 , 2 )))
138138 )
@@ -155,7 +155,7 @@ def test_in_tree_grid_sampler_lowers_to_tosa_custom():
155155
156156# Covers sampler/image descriptor selection during lowering.
157157# Checks the lowered payload uses combined-image-sampler input, tensor grid input, and storage-image output.
158- def test_sampler_shader_lowering_emits_expected_descriptor_types ():
158+ def test_sampler_shader_vgf_lowering_emits_expected_descriptor_types ():
159159 if shutil .which ("glslc" ) is None :
160160 pytest .skip ("glslc not found" )
161161 register_test_shader_library_ops ()
@@ -188,7 +188,7 @@ def test_sampler_shader_lowering_emits_expected_descriptor_types():
188188 assert payload ["output_0_vkdescriptortype" ] == "VK_DESCRIPTOR_TYPE_STORAGE_IMAGE"
189189
190190
191- def test_grid_read_shader_lowering_uses_distinct_custom_operator ():
191+ def test_grid_read_shader_vgf_lowering_uses_distinct_custom_operator ():
192192 if shutil .which ("glslc" ) is None :
193193 pytest .skip ("glslc not found" )
194194 register_test_shader_library_ops ()
@@ -212,7 +212,7 @@ def test_grid_read_shader_lowering_uses_distinct_custom_operator():
212212 assert custom_node .kwargs ["operator_name" ] == TEST_GRID_READ_TENSOR_OPERATOR
213213
214214
215- def test_sampler_shader_lowering_rejects_three_channel_image_payload ():
215+ def test_sampler_shader_vgf_lowering_rejects_three_channel_image_payload ():
216216 if shutil .which ("glslc" ) is None :
217217 pytest .skip ("glslc not found" )
218218 register_test_shader_library_ops ()
@@ -237,7 +237,7 @@ def test_sampler_shader_lowering_rejects_three_channel_image_payload():
237237
238238# Covers decoding of implementation_attrs after lowering.
239239# Checks the payload exposes the expected entry point and binding numbering.
240- def test_shader_lowering_decodes_expected_implementation_attrs ():
240+ def test_shader_lowering_vgf_decodes_expected_implementation_attrs ():
241241 edge_model = to_edge (
242242 export (_GridSampleModule (), (torch .randn (1 , 3 , 8 , 8 ), torch .randn (1 , 4 , 4 , 2 )))
243243 )
0 commit comments