Closed SJ4949 closed 4 months ago
Assume your model comes from PyTorch. If you're able to lower the operator set used in your model, it's possible to workaround this missing operator. Follow this example which uses operator set=18:
# The previous model can be exported with dynamic shapes
export_options = torch.onnx.ExportOptions(dynamic_shapes=True)
export_output = torch.onnx.dynamo_export(
model,
*args,
**kwargs,
export_options=export_options)
export_output.save("my_dynamic_model.onnx")
@SJ4949 did @wschin's suggestion resolve your issue?
Yes that really helped. Thank you.
But proceeding futher, i am getting this error:
terminating with uncaught exception of type Ort::Exception: /onnxruntime_src/orttraining/orttraining/training_api/module.cc:538 onnxruntime::common::Status onnxruntime::training::api::Module::TrainStep(const std::vector
@wschin @prathikr
@SJ4949 can you confirm your issue is still present with latest ORT/torch?
Closing issue as STALE
I was trying to train a pretrained BERT model but failing as the below nodes are not implemented.
RuntimeError: C:\a_work\1\s\orttraining\orttraining\training_api\module.cc:175 onnxruntime::training::api::Module::Module [ONNXRuntimeError] : 9 : NOT_IMPLEMENTED : Could not find an implementation for Reshape(19) node with name 'Reshape__265'
Are we planning to include this, let me know the schedule?