ailiaOpenWeightMem method
- Pointer<
AILIANetwork> net, - Pointer<
Void> buf, - int buf_size
~japanese @brief ネットワークオブジェクトに重み係数を読み込みます。(メモリから読み込み) @param net ネットワークオブジェクトポインタ @param buf protobuf/onnxファイルのデータへのポインタ @param buf_size protobuf/onnxファイルのデータサイズ @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。 @details メモリからネットワークオブジェクトに重み係数を読み込みます。
~english @brief Reads weights into a network instance. (Read from memory) @param net A network instance pointer @param buf A pointer to the data in the protobuf/onnx file @param buf_size The data size of the protobuf/onnx file @return If this function is successful, it returns \ref AILIA_STATUS_SUCCESS , or an error code otherwise. @details This function reads weights into the network instance from memory.
Implementation
int ailiaOpenWeightMem(
ffi.Pointer<AILIANetwork> net,
ffi.Pointer<ffi.Void> buf,
int buf_size,
) {
return _ailiaOpenWeightMem(
net,
buf,
buf_size,
);
}