This PR adds a small wrapper on top of the existing code to make it easier to use as an external library in other projects. In particular, the dependencies are reduced to standard libraries as illustrated in the included demo:
One open question is whether absl::Notifcation is the best synchronization mechanism, not least since it's currently causing some trouble when using the library in a TensorFlow custom-op; as a work-around I've switched to using WaitForNotificationWithTimeout in a loop.
This PR adds a small wrapper on top of the existing code to make it easier to use as an external library in other projects. In particular, the dependencies are reduced to standard libraries as illustrated in the included demo:
One open question is whether
absl::Notifcation
is the best synchronization mechanism, not least since it's currently causing some trouble when using the library in a TensorFlow custom-op; as a work-around I've switched to usingWaitForNotificationWithTimeout
in a loop.