ailiaGetBlobShape method
- Pointer<
AILIANetwork> net, - Pointer<
AILIAShape> shape, - int blob_idx,
- int version
Gets the shape of the internal data (blob) during inference.
Parameters:
net: A network instance pointershape: Storage location of the data shape informationblob_idx: The index of the blob (0 to ailiaGetBlobCount() -1)version: AILIA_SHAPE_VERSION
Returns:
If this function is successful, it returns AILIA_STATUS_SUCCESS . And if shape has 5 or more dimension, it returns AILIA_STATUS_NDIMENSION_SHAPE , or an error code otherwise.
When dimension of shape is 5 or more, please use ailiaGetBlobDim() and ailiaGetBlobShapeND(). This API can be call after call ailiaOpenWeighXXX().
Implementation
int ailiaGetBlobShape(
ffi.Pointer<AILIANetwork> net,
ffi.Pointer<AILIAShape> shape,
int blob_idx,
int version,
) {
return _ailiaGetBlobShape(
net,
shape,
blob_idx,
version,
);
}