openfl.interface.interactive_api.shard_descriptor.DummyShardDescriptor
- class openfl.interface.interactive_api.shard_descriptor.DummyShardDescriptor(sample_shape: Iterable[str], target_shape: Iterable[str], size: int)
Bases:
ShardDescriptorDummy shard descriptor class.
Methods
Return a shard dataset by type.
Attributes
Return the dataset description.
Return the sample shape info.
Return the target shape info.
- property dataset_description: str
Return the dataset description.
- Returns:
str – The dataset description.
- get_dataset(dataset_type: str) ShardDataset
Return a shard dataset by type.
- Parameters:
dataset_type (str) – The type of the dataset.
- Returns:
ShardDataset – The shard dataset.
- property sample_shape: List[int]
Return the sample shape info.
- Returns:
List[int] – The sample shape.
- property target_shape: List[int]
Return the target shape info.
- Returns:
List[int] – The target shape.