【问题标题】:Why cant I use ONNX Runtime training with pytorch?为什么我不能在 pytorch 中使用 ONNX 运行时训练?
【发布时间】:2020-08-04 21:05:30
【问题描述】:

当我跑步时

from onnxruntime.capi.ort_trainer import ORTTrainer

https://github.com/microsoft/onnxruntime/#training-start 所述,我收到此错误:

ModuleNotFoundError: No module named 'onnxruntime.capi.ort_trainer'

我能做些什么来解决这个问题? 我通过 pip 安装了 onnxruntime,但我什至在 [python path]/site_packages/onnx-runtime/capi 中找不到“ort_trainer.py”

【问题讨论】:

    标签: python pytorch onnxruntime


    【解决方案1】:

    您应该从源代码构建 ort 训练。 https://www.onnxruntime.ai/docs/how-to/build.html#training

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-06-09
      • 2021-10-04
      • 2017-03-27
      • 2019-06-12
      • 2020-01-11
      • 2020-03-09
      • 1970-01-01
      相关资源
      最近更新 更多