TFDS now supports the Croissant 🥐 format! Read the documentation to know more.
tfds.testing.DummySerializer
Stay organized with collections
Save and categorize content based on your preferences.
To mock example_serializer.ExampleSerializer.
tfds.testing.DummySerializer(
specs
)
Attributes | |
|---|---|
example_specs
|
Dataclass field |
Methods
serialize_example
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
)