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

Support TensorFlow pluggable devices #2144

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

jianyizh
Copy link

@jianyizh jianyizh commented May 16, 2023

PluggableDevice architecture offers a plugin mechanism for registering devices with TensorFlow without the need to make changes in TensorFlow code. It relies on C APIs to communicate with the TensorFlow binary in a stable manner. #2038 also asks for support of pluggable devices.

This PR adds the support for pluggable device. It will try to load all .so files under the given directory from argument --tensorflow_plugins by TF_LoadPluggableDeviceLibrary. With current exported symbol "TF_", the package size is increased 4M and total ratio is increased to 101%.
We will need to add alwaylink=1 in TensorFlow kernels_experimental library (tensorflow/tensorflow#60786).

@marvin-Yu
Copy link

When can this PR be merged into master? any update?

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.

2 participants