-
Notifications
You must be signed in to change notification settings - Fork 625
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
Avoid re-installing if Tensorflow is already installed for WASI-NN #2148
Avoid re-installing if Tensorflow is already installed for WASI-NN #2148
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't use -
for file name, use _
instead or CI will report error. How about changing to find_tensorflow_lite.cmake
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Understood. thank you for the comment
@tonibofarull Could you help review the PR? Thanks. |
) | ||
find_path(FLATBUFFER_INCLUDE_DIR | ||
NAMES flatbuffers/flatbuffers.h | ||
HINTS ${CMAKE_LIBRARY_PATH}../include |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I remove it by assuming the user set CMAKE_INCLUDE_PATH (ex. https://github.com/midokura/wasm-micro-runtime/blob/cbaea994e04d7dec48f5bb00c8a54cf1c4e4bdbf/core/iwasm/libraries/wasi-nn/test/Dockerfile.vx-delegate#L89)
|
||
find_library(TENSORFLOW_LITE | ||
NAMES tensorflow-lite | ||
HINTS ${CMAKE_LIBRARY_PATH} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I remove it by assuming the user set CMAKE_INCLUDE_PATH (ex. https://github.com/midokura/wasm-micro-runtime/blob/cbaea994e04d7dec48f5bb00c8a54cf1c4e4bdbf/core/iwasm/libraries/wasi-nn/test/Dockerfile.vx-delegate#L89)
…ytecodealliance#2148) Since the Tensorflow library is already installed in many cases(especially in the case of the embedded system), move the installation code to find_package.
Since the Tensorflow library is already installed in many cases(especially in the case of the embedded system), move the installation code to find_package.