liuliu / ccv

C-based/Cached/Core Computer Vision Library, A Modern Computer Vision Library
http://libccv.org
Other
7.07k stars 1.71k forks source link

create buffer if matrix length larger than 4096 #262

Closed weiyanlin117 closed 4 months ago

weiyanlin117 commented 4 months ago

fallback for "-[MTLDebugComputeCommandEncoder setBytes:length:attributeStride:atIndex:]:400: failed assertion `length(X) must be <= 4096.'" MTLDebugComputeCommandEncoder setBytes can only support 4096

tested on DT