Closed vitalyli closed 2 years ago
Tensors flow.. as follows: Given batch size of 128 prefixes:
Hi @vitalyli, thank you for filing this issue! Since I can't spot any errors, I guess the issue is not about a bug in TF Hub? Are you trying to get feedback on the SPMEmbeddingColumn code?
Hi @vitalyli, since the SPMEmbeddingColumn does not depend on TF Hub, https://github.com/tensorflow/tensorflow/tree/master/tensorflow/python/feature_column is probably the most suitable location for this contribution. Could you try opening a pull request to https://github.com/tensorflow/tensorflow/tree/master/tensorflow/python/feature_column ?
I'll close the TF Hub issue for now, but please reopen if you have any questions.
For your review Sentencepiece BPE text embedding feature column.
It's formulated as generic solution, and it's not a model hosted by hub, but it falls into hub realm or base TF layers. https://github.com/google/sentencepiece/blob/master/tensorflow/README.md The input is byte_list as part of ELWC tfrecord, see fragment example below:
Usage example: