cfvqa icon indicating copy to clipboard operation
cfvqa copied to clipboard

TypeError: Object of type Tensor is not JSON serializable

Open MyMiracles opened this issue 2 years ago • 1 comments

配置好环境后运行,在bootstrap/lib/logger.py里的json.dump()报TypeError: Object of type Tensor is not JSON serializable,请问作者有遇到这个问题吗?不解决是否可以,把logger.flush()注释掉后train和eval的结果都有了。

MyMiracles avatar Sep 15 '22 11:09 MyMiracles

请问朋友你解决这个问题了吗

yangxingrui avatar Oct 13 '23 08:10 yangxingrui