Deserialize

Applicable Products

All processors

Header File/Library File

  • Header file: #include <graph/custom_op.h>
  • Library file: libgraph.so

Function Usage

Reads serialized binary data from the buffer and deserializes the data to restore the kernel status of the operator. It is used together with Serialize to implement persistent restoration of operator data and rebuild the operator operating environment during model loading.

Prototype

1
virtual graphStatus Deserialize(const std::vector<uint8_t> &buffer) = 0

Parameters

Parameter

Input/Output

Description

buffer

Input

Input binary data.

Returns

Parameter

Type

Description

-

graphStatus

GRAPH_SUCCESS(0): success.

Other values: failure.

Restrictions

None