Halide 22.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
6namespace 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 void serialize_pipeline(const Pipeline &pipeline, std::vector<uint8_t> &data);
12
13/// @brief Serialize a Halide pipeline into the given data buffer.
14/// @param pipeline The Halide pipeline to serialize.
15/// @param data The data buffer to store the serialized Halide pipeline into. Any existing contents will be destroyed.
16/// @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).
17 void serialize_pipeline(const Pipeline &pipeline, std::vector<uint8_t> &data, std::map<std::string, Parameter> &params);
18
19/// @brief Serialize a Halide pipeline into the given filename.
20/// @param pipeline The Halide pipeline to serialize.
21/// @param filename The location of the file to write into to store the serialized pipeline. Any existing contents will be destroyed.
22 void serialize_pipeline(const Pipeline &pipeline, const std::string &filename);
23
24/// @brief Serialize a Halide pipeline into the given filename.
25/// @param pipeline The Halide pipeline to serialize.
26/// @param filename The location of the file to write into to store the serialized pipeline. Any existing contents will be destroyed.
27/// @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).
28 void serialize_pipeline(const Pipeline &pipeline, const std::string &filename, std::map<std::string, Parameter> &params);
29
30} // namespace Halide
31
32#endif
Pipeline.h
Defines the front-end class representing an entire Halide imaging pipeline.
Halide::Pipeline
A class representing a Halide pipeline.
Definition: Pipeline.h:107
Halide
This file defines the class FunctionDAG, which is our representation of a Halide pipeline,...
Definition: AbstractGenerator.h:19
Halide::serialize_pipeline
void serialize_pipeline(const Pipeline &pipeline, std::vector< uint8_t > &data)
Serialize a Halide pipeline into the given data buffer.