In the comment, there are such lines, so the only way is to try again and again to get minist value.
// Create an area of memory to use for input, output, and intermediate arrays.
// The size of this will depend on the model you’re using, and may need to be
// determined by experimentation.