tensorflow / custom-op

Guide for building custom op for TensorFlow
Apache License 2.0
378 stars 115 forks source link

Example of op with a resource or custom object #104

Open maedoc opened 3 years ago

maedoc commented 3 years ago

It'd be helpful to add an example use of ResourceMgr for third party C++ objects used. I put together a minimal example for my own purposes

https://gist.github.com/maedoc/37202e3e1b3dbff1b77dc6106e11917a

but it'd be great for the TF repo to have something, since it's not in the 'Create an op' tutorial.