TFDS now supports the Croissant 🥐 format! Read the documentation to know more.

tfds.testing.DummySerializer

View source on GitHub

To mock example_serializer.ExampleSerializer.

tfds.testing.DummySerializer(
 specs
)

Attributes

example_specs Dataclass field

Methods

serialize_example

View source

serialize_example(
 example
)

Serialize the given example.

Args
example Nested dict containing the input to serialize. The input structure and values dtype/shape must match the example_specs provided at construction.

Returns
the serialized example.

__eq__

__eq__(
 other
)

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.