Skip to content

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