×

签到

分享到微信

打开微信,使用扫一扫进入页面后,点击右上角菜单,

点击“发送给朋友”或“分享到朋友圈”完成分享

移植bert模型失败:RuntimeError: Cannot set version_counter for inference tensor 已完结 hustgao2022-12-06 11:51:50 回复 13 查看 使用求助 经验交流 社区交流
移植bert模型失败:RuntimeError: Cannot set version_counter for inference tensor
分享到:

报错如下:

  File "/torch/venv3/pytorch/lib/python3.6/site-packages/bert4torch/ s.py", line 114, in forward

    mixed_query_ = self.q(hidden_states)

  File "/torch/venv3/pytorch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1051, in _call_impl

    return forward_call(*input, **kwargs)

  File "/torch/venv3/pytorch/lib/python3.6/site-packages/torch/nn/modules/linear.py", line 96, in forward

    return F.linear(input, self.weight, self.bias)

  File "/torch/venv3/pytorch/lib/python3.6/site-packages/torch/nn/functional.py", line 1863, in linear

    return torch._C._nn.linear(input, weight, bias)

RuntimeError: Cannot set version_counter for inference tensor

版权所有 © 2024 寒武纪 Cambricon.com 备案/许可证号:京ICP备17003415号-1
关闭