tfjs在使用tf.tensor报错length out of range buffer?

发布于 4 年前作者 zcao12458 次浏览最后编辑 4 年前来自 issues

ios 在tfjs在使用tf.tensor报错length out of range buffer?安卓没问题,我看到有大佬之前通过裁剪图片的方式去解决好像解决了问题,但是我用最小的一个图去使用发现还是报错,如果裁剪了用不了也没意义,请问有其他办法吗?

tf.tensor(imageList[t].data, [imageList[t].width * imageList[t].height])

0 回复
暂无回复