Open JiahuaWU opened 3 years ago
Same issue for TensorFlow Decision Forests models, they require TF custom ops.
Custom ops can be loaded using
tf.LoadLibrary(opFilePass)
For decision forest i found ops file here. File path: /tensorflow_decision_forests/tensorflow/ops/inference/inference.so
Hi, I trained a model with custom op and export it using
saved_model
API and I would like to serve it using tfgo. However, since tfgo binds to tensorflow C library(more preciselylibtensorflow.so
) which is very hard to modify, I'm not sure how to register the custom op in the binary in this case. Is there any chance and would anyone give some help? Here is an example of training script in whichdynamic_embedding
is implemented as a custom op built in the librarytensorflow-recommenders-addons
, and when I try to load the model using tfgo I get the following error: