We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d373b6 commit 84cc8e0Copy full SHA for 84cc8e0
build/Codegen.cmake
@@ -79,7 +79,7 @@ function(generate_bindings_for_kernels)
79
execute_process(
80
COMMAND
81
"${PYTHON_EXECUTABLE}" -c
82
- "from importlib.util import find_spec;print(find_spec('torchgen').submodule_search_locations[0])"
+ "import torchgen;import os; print(os.path.dirname(torchgen.__file__))"
83
OUTPUT_VARIABLE site-packages-out
84
ERROR_VARIABLE site-packages-out-error
85
RESULT_VARIABLE site-packages-result
0 commit comments