You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.
encoder_fn = tf_voc_encode(vocab_table) in the function get_encoder as this is later called as an argument of _dataset.map() which always runs in Graph mode and hence I was always getting the error:
ValueError("input must have a statically-known rank.")
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I guess the function
tf_vocab_encode(text,vocab_table)
inencoding.py
should be implemented as:and then the
encoder_fn
should be set as:encoder_fn = tf_voc_encode(vocab_table)
in the functionget_encoder
as this is later called as an argument of_dataset.map()
which always runs in Graph mode and hence I was always getting the error:ValueError("input must have a statically-known rank.")
The text was updated successfully, but these errors were encountered: