tfr.extension.premade.TFRBertDataLoader
Stay organized with collections
Save and categorize content based on your preferences.
A class to load dataset for TFR-BERT task.
Inherits From: RankingDataLoader
tfr.extension.premade.TFRBertDataLoader(
params, label_spec: Tuple[str, tf.io.FixedLenFeature] = None, **kwargs
)
Methods
load
View source
load(
input_context: Optional[tf.distribute.InputContext] = None
) -> tf.data.Dataset
Returns a tf.dataset.Dataset.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-08-18 UTC.
[null,null,["Last updated 2023-08-18 UTC."],[],[],null,["# tfr.extension.premade.TFRBertDataLoader\n\n\u003cbr /\u003e\n\n|-----------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/ranking/blob/v0.5.3/tensorflow_ranking/extension/premade/tfrbert_task.py#L50-L97) |\n\nA class to load dataset for TFR-BERT task.\n\nInherits From: [`RankingDataLoader`](../../../tfr/extension/task/RankingDataLoader)\n\n#### View aliases\n\n\n**Main aliases**\n\n[`tfr.extension.premade.tfrbert_task.TFRBertDataLoader`](https://www.tensorflow.org/ranking/api_docs/python/tfr/extension/premade/TFRBertDataLoader)\n\n\u003cbr /\u003e\n\n tfr.extension.premade.TFRBertDataLoader(\n params, label_spec: Tuple[str, tf.io.FixedLenFeature] = None, **kwargs\n )\n\nMethods\n-------\n\n### `load`\n\n[View source](https://github.com/tensorflow/ranking/blob/v0.5.3/tensorflow_ranking/extension/task.py#L159-L169) \n\n load(\n input_context: Optional[tf.distribute.InputContext] = None\n ) -\u003e tf.data.Dataset\n\nReturns a tf.dataset.Dataset."]]