把tensor转换为json可以识别的类型就好,numpy也不行,需要转换。
这应该是在天池热身赛1遇到的问题。
TypeError: Object of type ‘Tensor‘ is not JSON serializable
猜你喜欢
转载自blog.csdn.net/qq_44065334/article/details/114048988
今日推荐
周排行