Halide  19.0.0
Halide compiler and libraries
Serialization.h
Go to the documentation of this file.
1 #ifndef HALIDE_SERIALIZATION_H
2 #define HALIDE_SERIALIZATION_H
3 
4 #include "Pipeline.h"
5 
6 namespace Halide {
7 
8 /// @brief Serialize a Halide pipeline into the given data buffer.
9 /// @param pipeline The Halide pipeline to serialize.
10 /// @param data The data buffer to store the serialized Halide pipeline into. Any existing contents will be destroyed.
11 /// @param params Map of named parameters which will get populated during serialization (can be used to bind external parameters to objects in the pipeline by name).
12 void serialize_pipeline(const Pipeline &pipeline, std::vector<uint8_t> &data);
13 
14 /// @brief Serialize a Halide pipeline into the given data buffer.
15 /// @param pipeline The Halide pipeline to serialize.
16 /// @param data The data buffer to store the serialized Halide pipeline into. Any existing contents will be destroyed.
17 /// @param params Map of named parameters which will get populated during serialization (can be used to bind external parameters to objects in the pipeline by name).
18 void serialize_pipeline(const Pipeline &pipeline, std::vector<uint8_t> &data, std::map<std::string, Parameter> &params);
19 
20 /// @brief Serialize a Halide pipeline into the given filename.
21 /// @param pipeline The Halide pipeline to serialize.
22 /// @param filename The location of the file to write into to store the serialized pipeline. Any existing contents will be destroyed.
23 void serialize_pipeline(const Pipeline &pipeline, const std::string &filename);
24 
25 /// @brief Serialize a Halide pipeline into the given filename.
26 /// @param pipeline The Halide pipeline to serialize.
27 /// @param filename The location of the file to write into to store the serialized pipeline. Any existing contents will be destroyed.
28 /// @param params Map of named parameters which will get populated during serialization (can be used to bind external parameters to objects in the pipeline by name).
29 void serialize_pipeline(const Pipeline &pipeline, const std::string &filename, std::map<std::string, Parameter> &params);
30 
31 } // namespace Halide
32 
33 #endif
Defines the front-end class representing an entire Halide imaging pipeline.
A class representing a Halide pipeline.
Definition: Pipeline.h:107
This file defines the class FunctionDAG, which is our representation of a Halide pipeline,...
void serialize_pipeline(const Pipeline &pipeline, std::vector< uint8_t > &data)
Serialize a Halide pipeline into the given data buffer.