View source on GitHub |
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
)