Skip to content

Commit ee567c9

Browse files
authored
Add missing custom_ops_aot_lib preload dep to test_update_cross_attn_cache (pytorch#16482)
Summary: The test was failing with ModuleNotFoundError because the custom ops weren't registered when the test ran. The C++ library that registers the llama ops needs to be preloaded before the Python module tries to access them. Differential Revision: D90205347
1 parent 0391fe7 commit ee567c9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎extension/llm/custom_ops/TARGETS‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ runtime.python_test(
7070
"test_update_cross_attn_cache.py",
7171
],
7272
preload_deps = [
73+
":custom_ops_aot_lib",
7374
":custom_ops_aot_py",
7475
],
7576
deps = [

0 commit comments

Comments
 (0)