标签:bsp python image mic 图片 val index mamicode number
将datra[0]换成item() 即可
IndexError: invalid index of a 0-dim tensor. Use tensor.item() to convert a 0-dim tensor to a Python number
原文地址:https://www.cnblogs.com/blogwangwang/p/11985750.html