Use return_tensors="np" instead of "tf" (#21266)

Return NP instead of TF tensors for our data loading pipeline
This commit is contained in:
Matt
2023-01-24 13:37:49 +00:00
committed by GitHub
parent f0fc791298
commit 071529bd54
6 changed files with 8 additions and 8 deletions

View File

@@ -533,7 +533,7 @@ def main():
model=model,
label_pad_token_id=label_pad_token_id,
pad_to_multiple_of=128, # Reduce the number of unique shapes for XLA, especially for generation
return_tensors="tf",
return_tensors="np",
)
dataset_options = tf.data.Options()