"docs/source/vscode:/vscode.git/clone" did not exist on "e5b7cff5fe65eac9e54ba88fa3935b3270db0207"
Unverified Commit 5feac3d0 authored by Matt's avatar Matt Committed by GitHub
Browse files

Fix prepare_tf_dataset when drop_remainder is not supplied (#17950)

parent bc019b0e
......@@ -1215,6 +1215,9 @@ class TFPreTrainedModel(tf.keras.Model, TFModelUtilsMixin, TFGenerationMixin, Pu
output_columns = list(output_signature.keys())
feature_cols = [col for col in output_columns if col in model_inputs and col not in model_labels]
label_cols = [col for col in output_columns if col in model_labels]
if drop_remainder is None:
drop_remainder = shuffle
tf_dataset = dataset.to_tf_dataset(
columns=feature_cols,
label_cols=label_cols,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment