Skip to content
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

Merged

Conversation

ayakoakasaka
Copy link
Contributor

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.

Copy link
Contributor

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?

Copy link
Contributor Author

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

@ayakoakasaka ayakoakasaka marked this pull request as ready for review April 25, 2023 05:14
@wenyongh
Copy link
Contributor

@tonibofarull Could you help review the PR? Thanks.

)
find_path(FLATBUFFER_INCLUDE_DIR
NAMES flatbuffers/flatbuffers.h
HINTS ${CMAKE_LIBRARY_PATH}../include
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


find_library(TENSORFLOW_LITE
NAMES tensorflow-lite
HINTS ${CMAKE_LIBRARY_PATH}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wenyongh wenyongh merged commit ed6b8ef into bytecodealliance:main Apr 27, 2023
@tonibofarull tonibofarull deleted the wasi-nn/external_delegate_support branch June 18, 2023 15:19
@tonibofarull tonibofarull restored the wasi-nn/external_delegate_support branch June 18, 2023 15:19
@tonibofarull tonibofarull deleted the wasi-nn/external_delegate_support branch June 18, 2023 15:20
victoryang00 pushed a commit to victoryang00/wamr-aot-gc-checkpoint-restore that referenced this pull request May 27, 2024
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants