Skip to content

[Executorch][to_backend] Introduce preprocess_multimethod #9823

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
Apr 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,10 @@ if(EXECUTORCH_BUILD_PYBIND)
torch
)

if(EXECUTORCH_BUILD_TESTS)
list(APPEND _dep_libs test_backend_compiler_lib)
endif()

if(EXECUTORCH_BUILD_KERNELS_OPTIMIZED)
list(APPEND _dep_libs optimized_native_cpu_ops_lib)
else()
Expand Down
2 changes: 1 addition & 1 deletion devtools/inspector/tests/inspector_utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def test_compare_results(self):
self.assertAlmostEqual(calculate_cosine_similarity([a], [b])[0], 1.0)

def test_compare_results_uint8(self):
a = torch.randint(0, 255, (4, 4), dtype=torch.uint8)
a = torch.randint(1, 255, (4, 4), dtype=torch.uint8)

# Create tensor b which has very close value to tensor a
b = a.clone()
Expand Down
Loading
Loading