microsoft / onnxruntime

ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator
https://onnxruntime.ai
MIT License
14.77k stars 2.94k forks source link

#22890 Fix profiling on empty Optional #22891

Open amancini-N opened 2 days ago

amancini-N commented 2 days ago

Description

Fix sequential_executor.cc to avoid segfault when profiling is used on model with empty Optional

Motivation and Context

Fixes #22890