BeanDAO
BeanDAO
I solved this problem: int limit = bps * nch * toberead; if (limit > rawinbuf.capacity()) { rawinbuf.clear(); rawinbuf = ByteBuffer.allocate(limit); } rawinbuf.position(0); rawinbuf.limit(limit);
Great. I upgraded my iPhone 14 pro from 16.0.2 to 16.1.1. It can run without prompting memory errors。  
> @godly-devotion I created two other related issues to this. [Cannot create CoreML model with Flexible input shapes.](https://github.com/apple/ml-stable-diffusion/issues/70) and [SPLIT_EINSUM - Kernel Panic when testing UNET created with height 96...