ailiaSetInputBlobShapeND method
- Pointer<
AILIANetwork> net, - Pointer<
UnsignedInt> shape, - int dim,
- int blob_idx
Change the shape of the blob given by its index
Parameters:
net: network object pointershape: An array of shape that contains size of each axis (dim-1, dim-2, ... ,1, 0)dim: The size of shape.blob_idx: index referencing the blob to reshape
Returns:
In case of success, AILIA_STATUS_SUCCESS , and otherwise the coresponding error code.
This is useful to change the network input shape in a context where there are several input blobs. If blob_idx does not correspond to an input layer, AILIA_STATUS_INVALID_ARGUMENT is returned. For other related remarks, see the documentation of ailiaSetInputShapeND(). This API can be call after call ailiaOpenWeighXXX().
Implementation
int ailiaSetInputBlobShapeND(
ffi.Pointer<AILIANetwork> net,
ffi.Pointer<ffi.UnsignedInt> shape,
int dim,
int blob_idx,
) {
return _ailiaSetInputBlobShapeND(
net,
shape,
dim,
blob_idx,
);
}