Shortcuts

DataPipeline

class flash.core.data.data_pipeline.DataPipeline(data_source=None, preprocess=None, postprocess=None, deserializer=None, serializer=None)[source]

DataPipeline holds the engineering logic to connect Preprocess and/or Postprocess objects to the DataModule, Flash Task and Trainer.

Example:

class CustomPreprocess(Preprocess):
    pass

class CustomPostprocess(Postprocess):
    pass

custom_data_pipeline = DataPipeline(CustomPreprocess(), CustomPostprocess())

# And it can attached to both the datamodule and model.

datamodule.data_pipeline = custom_data_pipeline
model.data_pipeline = custom_data_pipeline
initialize(data_pipeline_state=None)[source]

Creates the DataPipelineState and gives the reference to the: Preprocess, Postprocess, and Serializer. Once this has been called, any attempt to add new state will give a warning.

Return type

DataPipelineState

Read the Docs v: latest
Versions
latest
stable
0.5.0
0.4.0
0.3.2
0.3.1
0.3.0
0.2.3
0.2.2
0.2.1
0.2.0
0.1.0post1
Downloads
pdf
html
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.