Class FileSourceStage

(Latest Version)

Base Type

  • public mrc::pymrc::PythonSource< std::shared_ptr< MessageMeta > >

class FileSourceStage : public mrc::pymrc::PythonSource<std::shared_ptr<MessageMeta>>

Load messages from a file. Source stage is used to load messages from a file and dumping the contents into the pipeline immediately. Useful for testing performance and accuracy of a pipeline.

Public Types

using base_t = mrc::pymrc::PythonSource<std::shared_ptr<MessageMeta>>

Public Functions

FileSourceStage(std::string filename, int repeat = 1)

Construct a new File Source Stage object.

  • filename – : Name of the file from which the messages will be read

  • repeat – : Repeats the input dataset multiple times. Useful to extend small datasets for debugging

© Copyright 2023, NVIDIA. Last updated on Apr 11, 2023.