SetData
Function Prototype
graphStatus SetData(std::vector<uint8_t> &&data);
graphStatus SetData(const std::vector<uint8_t> &data);
graphStatus SetData(const Buffer &data);
graphStatus SetData(const uint8_t *data, size_t size);
Function Description
Sets data to a tensor.
Parameter Description
Parameter |
Input/Output |
Type |
Description |
---|---|---|---|
data |
Input |
std::vector<uint8_t> && const std::vector<uint8_t> & const Buffer & or const uint8_t * |
Data to be set |
size |
Input |
size_t |
Data length, in bytes |
Return Value
Parameter |
Type |
Description |
---|---|---|
- |
graphStatus |
If the operation is successful, GRAPH_SUCCESS is returned. Otherwise, GRAPH_FAILED is returned. |
Exception Handling
None
Restriction
None
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot