Skip to content

Commit 8e21ced

Browse files
committed
Fixing link to to_tf_dataset docs
1 parent e41f8a8 commit 8e21ced

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/use_with_tensorflow.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ that you set the batch size when creating the dataset, and so you don't need to
154154
>>> model.fit(tf_ds, epochs=2)
155155
```
156156

157-
For a full description of the arguments, please see the `to_tf_dataset()` [documentation](https://huggingface.co/docs/datasets/package_reference/main_classes#datasets.Dataset.to_tf_dataset). In many cases,
157+
For a full description of the arguments, please see the [`~Dataset.to_tf_dataset`]. In many cases,
158158
you will also need to add a `collate_fn` to your call. This is a function that takes multiple elements of the dataset
159159
and combines them into a single batch. When all elements have the same length, the built-in default collator will
160160
suffice, but for more complex tasks a custom collator may be necessary. In particular, many tasks have samples

0 commit comments

Comments
 (0)