tensorflow / models

Models and examples built with TensorFlow
Other
76.95k stars 45.79k forks source link

tf_ops Documentation request #9330

Open empty-id opened 3 years ago

empty-id commented 3 years ago

Prerequisites

Please answer the following question for yourself before submitting an issue.

1. The entire URL of the documentation with the issue

https://github.com/tensorflow/models/tree/master/research/sequence_projection

2. Describe the issue

Hi, @thunderfyc @expander-robot . I am really interested in your work PRADO. However, I am confused about the tf_ops part, especially for the sequence_string_projection here. Is there any documentation available, since I notice the code is in C++ instead of Python.

empty-id commented 3 years ago

Hi, is there any help?

thunderfyc commented 3 years ago

We wrote a custom TF kernel in C++, and the line you pointed calls that op: https://github.com/tensorflow/models/blob/master/research/sequence_projection/tf_ops/sequence_string_projection.cc

The algorithm behind can be explained in this paper: https://www.aclweb.org/anthology/D19-1506/

empty-id commented 3 years ago

Yeah, thank you for you reply. However, I mean is there any documentation available for users like me to use the interfaces without reading the source code of the custom kernel?

thunderfyc commented 3 years ago

TF api docs are created from python documents. We are working on prado keras layer, which may make it easier to follow. We may also provide a colab later to better demonstrate how to use it

empty-id commented 3 years ago

Thank you! Looking forward to it!