Lines Matching refs:data
53 * @param type The data type of the tensor.
56 * @param data The data pointer that points to allocated memory.
62 size_t shape_num, const void *data, size_t data_len);
96 * @brief Set the data type for the tensor.
98 * @param type The data type of the tensor.
104 * @brief Obtain the data type of the tensor.
146 * @brief Obtain the data for the tensor.
148 * @param data A pointer to the data of the tensor.
151 OH_AI_API void OH_AI_TensorSetData(OH_AI_TensorHandle tensor, void *data);
154 * @brief Obtain the data pointer of the tensor.
156 * @return The data pointer of the tensor.
162 * @brief Obtain the mutable data pointer of the tensor. If the internal data is empty, it will allocate memory.
164 * @return The data pointer of the tensor.
178 * @brief Obtain the data size fo the tensor.
180 * @return The data size of the tensor.
186 * @brief Set the data for the tensor with user-allocated data buffer.
190 * Note: The tensor won't free the data provided by invoker. Invoker has the responsibility to free it. And this
194 * @param data A pointer to the user data buffer.
195 * @param data the byte size of the user data buffer.
199 OH_AI_API OH_AI_Status OH_AI_TensorSetUserData(OH_AI_TensorHandle tensor, void *data, size_t data_size);