How to load custom op from c++

I built a custom op. One thing I am not sure is how to load it from a c++ program. In python you can use tf.load_op_library, but it does not seem to have a correspondent function in c++.

1 Like

You can try TF_LoadLibrary from C API, Env::LoadDynamicLibrary from C++ API.

See an example in loading filesystem plugins

2 Likes