ailiaSetInputShapeND method
- Pointer<
AILIANetwork> net, - Pointer<
UnsignedInt> shape, - int dim
Changes the shape of the input data during inference.
Parameters:
net: A network instance pointershape: An array of shape that contains size of each axis (dim-1, dim-2, ... ,1, 0)dim: The size of shape.
Returns:
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.
This function changes the input shape defined in prototxt. The shape must have the same rank as the one contained in prototxt. Note that an error may be returned if the weights are dependent on the input shapes, among other reasons. This API can be call after call ailiaOpenWeighXXX().
Implementation
int ailiaSetInputShapeND(
ffi.Pointer<AILIANetwork> net,
ffi.Pointer<ffi.UnsignedInt> shape,
int dim,
) {
return _ailiaSetInputShapeND(
net,
shape,
dim,
);
}