Replies: 2 comments
-
@SS-JIA can you take a look at the error? |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, there is no way to fall back to the CPU because during export the model has already been converted to a delegate specific IR. However, this is definitely an issue with Vulkan's lowering logic in that it is lowering operators with unsupport input/output dtypes. The easiest fix here is to add support for running In the long term, I will also update Vulkan's lowering logic to avoid lowering ops that have unsupported dtypes as inputs. Apologies for the inconvenience! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, how can I automatically fallback unsupported operators to the CPU when running a model with the Vulkan backend in ExecuTorch?
This is my CMakeLists.txt for my application to run model on ExecuTorch.
And This is my main.cpp code.
This is the error result.
D 00:00:00.000048 executorch:operator_registry.cpp:96] Successfully registered all kernels from shared library: NOT_SUPPORTED
D 00:00:00.000387 executorch:operator_registry.cpp:96] Successfully registered all kernels from shared library: NOT_SUPPORTED
Note (XNNPACK): l1_data_cache_bytes=32768, l1_data_cache_line_size=64, l1_data_cache_associativity=4, l1_data_cache_num_sets=128. (init_hardware_config, /mnt/work/workspace/pointnet2_executorch_demo/executorch/backends/xnnpack/third-party/XNNPACK/src/configs/hardware-config.c:413)
Note (XNNPACK): l2_data_cache_bytes=262144, l2_data_cache_line_size=64, l2_data_cache_associativity=8, l2_data_cache_num_sets=512. (init_hardware_config, /mnt/work/workspace/pointnet2_executorch_demo/executorch/backends/xnnpack/third-party/XNNPACK/src/configs/hardware-config.c:432)
Note (XNNPACK): cpuinfo_get_uarchs_count: 1. (init_hardware_config, /mnt/work/workspace/pointnet2_executorch_demo/executorch/backends/xnnpack/third-party/XNNPACK/src/configs/hardware-config.c:449)
Note (XNNPACK): cpu_get_uarch(0): 0x0 (init_hardware_config, /mnt/work/workspace/pointnet2_executorch_demo/executorch/backends/xnnpack/third-party/XNNPACK/src/configs/hardware-config.c:451)
D 00:00:00.004213 executorch:XNNPACKBackend.cpp:56] Creating XNN workspace
D 00:00:00.004272 executorch:XNNPACKBackend.cpp:68] Created XNN workspace: 0x55a146ccf0
ExecuTorch PointNet++ Inference Demo
model.pte loaded successfully
Input tensor shape: [1 6 1024 1 ]
Running inference...
D 00:00:00.015947 executorch:method.cpp:758] Loading method: forward.
terminate called after throwing an instance of 'vkcompute::vkapi::Error'
what(): Exception raised from get_shader_info at /mnt/work/workspace/pointnet2_executorch_demo/executorch/backends/vulkan/runtime/api/ShaderRegistry.cpp:51: (it != listings_.end()) is false! Could not find ShaderInfo with name concat_3_texture3d_int32
Aborted (core dumped)
And this is my code snippet for export .pte.
Please help me.
Beta Was this translation helpful? Give feedback.
All reactions