Serialize
Applicable Products
All processors
Header File/Library File
- Header file: #include <graph/custom_op.h>
- Library file: libgraph.so
Function Usage
Serializes the kernel binary data of a custom operator to the buffer. The format is defined by the operator. GE does not parse the data but only transparently transmits it. This API is used for persistent storage and restoration of operator data.
Prototype
1 | virtual graphStatus Serialize(std::vector<uint8_t> &buffer) = 0 |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
buffer |
Output |
Output binary data. The format is defined by the operator. GE does not parse the data but only transparently transmits it. |
Returns
Parameter |
Type |
Description |
|---|---|---|
- |
graphStatus |
GRAPH_SUCCESS(0): success. Other values: failure. |
Restrictions
None
Parent topic: PortableOp