| load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest") |
| |
| oncall("executorch") |
| |
| python_unittest( |
| name = "test_vulkan_delegate", |
| srcs = [ |
| "test_vulkan_delegate.py", |
| ], |
| preload_deps = [ |
| "fbsource//third-party/swiftshader/lib/linux-x64:libvk_swiftshader_fbcode", |
| "//executorch/backends/vulkan:vulkan_backend_lib", |
| "//executorch/kernels/portable:custom_ops_generated_lib", |
| ], |
| deps = [ |
| "//caffe2:torch", |
| "//executorch/backends/transforms:convert_dtype_pass", |
| "//executorch/backends/vulkan:vulkan_preprocess", |
| "//executorch/backends/vulkan/partitioner:vulkan_partitioner", |
| "//executorch/exir:lib", |
| "//executorch/extension/pybindings:portable_lib", # @manual |
| "//executorch/extension/pytree:pylib", |
| "//executorch/kernels/portable:custom_ops_generated_lib", |
| ], |
| ) |
| |
| python_unittest( |
| name = "test_vulkan_delegate_header", |
| srcs = [ |
| "test_vulkan_delegate_header.py", |
| ], |
| deps = [ |
| "//executorch/backends/vulkan:vulkan_preprocess", |
| ], |
| ) |
| |
| python_unittest( |
| name = "test_serialization", |
| srcs = [ |
| "test_serialization.py", |
| ], |
| deps = [ |
| "//caffe2:torch", |
| "//executorch/backends/vulkan:vulkan_preprocess", |
| ], |
| ) |