tfds.testing.RaggedConstant
Stay organized with collections
Save and categorize content based on your preferences.
Container of tf.ragged.constant values.
tfds.testing.RaggedConstant(
*args, **kwargs
)
This simple wrapper forward the arguments to delay the RaggedTensor
construction after @run_in_graph_and_eager_modes
has been called.
This is required to avoid incompabilities between Graph/eager.
Methods
build
View source
build()
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 2024-04-26 UTC.
[null,null,["Last updated 2024-04-26 UTC."],[],[],null,["# tfds.testing.RaggedConstant\n\n\u003cbr /\u003e\n\n|----------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/datasets/blob/v4.9.3/tensorflow_datasets/testing/feature_test_case.py#L135-L148) |\n\nContainer of tf.ragged.constant values. \n\n tfds.testing.RaggedConstant(\n *args, **kwargs\n )\n\nThis simple wrapper forward the arguments to delay the RaggedTensor\nconstruction after `@run_in_graph_and_eager_modes` has been called.\nThis is required to avoid incompabilities between Graph/eager.\n\nMethods\n-------\n\n### `build`\n\n[View source](https://github.com/tensorflow/datasets/blob/v4.9.3/tensorflow_datasets/testing/feature_test_case.py#L147-L148) \n\n build()"]]