onnxruntime
onnxruntime copied to clipboard
[build][cann] Fix CANN provider build failure
Description
This patch adds Python headers to CANN provider dependencies when building a library with both training and Python bindings.
Motivation and Context
Fixes #20697
+@wangshuai09 , @zhangsibo1129 Is --enabling_training --use_cann a valid supported combination?
+@wangshuai09 , @zhangsibo1129 Is --enabling_training --use_cann a valid supported combination? Sorry for the slow reply, the training ability is not adapted, so the --enabling_training is not supported.
+@wangshuai09 , @zhangsibo1129 Is --enabling_training --use_cann a valid supported combination?
Sorry for the slow reply, the training ability is not adapted, so the --enabling_training is not supported.
Ok, I see. My goal was to build one package that I can install in different environments (and CANN inference is one of them). Otherwise I have to build different artifacts for different use cases.