本文共 253 字,大约阅读时间需要 1 分钟。
问题:unqualified-id before ‘)’ token const std::vector& slots() const {
原因:QFile和‘torch/script"兼容的问题 解决方案:将使用QFile和torch的封装到两个类中 ,并且先include封装有torch的类问题:the derivative for ‘index’ is not implemented
原因:index中require_grad =True 解决方案:index = index.detach()转载地址:http://ywnti.baihongyu.com/