AISimpleTensor::SetBuffer
Sets the tensor data address.
Syntax
void SetBuffer(void *data, const int32_t size, bool isown=false);
Parameter Description
Parameter |
Description |
Value Range |
---|---|---|
data |
Data address |
- |
size |
Data length
NOTE:
The unit is byte. The value of size must be the same as the actual data size. |
- |
isown |
Whether the tensor frees the memory of the data address after the tensor life cycle expires.
|
- |
Return Value
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