This repository demonstrates the core data processing pipeline and the implementation of various operators, divided into Python and C++ layers.
/python/defines the interfaces for invoking the pipeline and core operators./python/enginecontains the pipeline-related logic./python/audio,/python/text, and/python/visiondefine the operator interfaces for different data modalities (audio, text, and vision respectively)./python/transformscontains definitions of various operations designed to transform and process input data, including tensor type conversion and tensor padding.
/src/enginecontains the core logic of the data processing pipeline./src/apiincludes interface definitions and encapsulation logic for data preprocessing in various modalities (audio, vision, and text).- The actual operator implementations and intermediate layers are located in the corresponding directories under
/src/. For example:/src/audio/ir/kernels/contains intermediate representations (IR) of audio-related operators.
code/src/api/python/pybind_conversionprovides a set of utilities for data conversion between Python and C++, such as converting a Python list ofDatasetNodeobjects to a C++std::vector<std::shared_ptr<DatasetNode>>.code/src/api/python/python_mpdefines a multi-process runtime management framework that enables thread and worker process binding.
The complete code is at https://github.com/mindspore-ai/mindspore.