×

签到

分享到微信

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

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

移植图像压缩算法使用量化模型在线推理错误 已完结 等等20222022-08-15 11:27:16 回复 1 查看 技术答疑 使用求助
移植图像压缩算法使用量化模型在线推理错误
分享到:

[ERROR][/pytorch/catch/torch_mlu/csrc/aten/operators/cnml/internal/maximum_internal.cpp][line:11][cnml_maximum_internal][thread:139997285717824][process:16972]:

Shape of input should match shape of other

[WARNING][/pytorch/catch/torch_mlu/csrc/aten/operators/op_methods.cpp][line:1386][max][thread:139997285717824][process:16972]:

max Op cannot run on MLU device, start running on CPU!

[ERROR][/pytorch/catch/torch_mlu/csrc/aten/operators/cnml/internal/maximum_internal.cpp][line:11][cnml_maximum_internal][thread:139997285717824][process:16972]:

Shape of input should match shape of other

[WARNING][/pytorch/catch/torch_mlu/csrc/aten/operators/op_methods.cpp][line:1386][max][thread:139997285717824][process:16972]:

max Op cannot run on MLU device, start running on CPU!

[WARNING][/pytorch/catch/torch_mlu/csrc/aten/operators/op_methods.cpp][line:3256][convolution_overrideable][thread:139997285717824][process:16972]:

convolution_overrideable Op cannot run on MLU device, start running on CPU!

Traceback (most recent call last):

  File "test_online.py", line 319, in <module>

    test_mlu_mode(args)

  File "test_online.py", line 158, in test_mlu_mode

    out_net = net.forward(img.to(ct.mlu_device())) if (args.mmode != "CPU") else net.forward(img)

  File "/torch/compressai/compressai/models/google.py", line 356, in forward

    y = self.g_a(x)

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

    result = self.forward(*input, **kwargs)

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

    input = module(input)

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

    result = self.forward(*input, **kwargs)

  File "/torch/compressai/compressai/ s/gdn.py", line 83, in forward

    norm = F.conv2d(x**2, gamma, beta)

RuntimeError: To do for CPU

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