```trtexec``` fails at the end if ```--saveEngine``` path is invalid or unwritable
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 13.4k
- Forks
- 2.4k
- Avg merge
- 5d 3h
- Merged PRs (30d)
- 2
Description
Description
When running trtexec with the --saveEngine flag pointing to an invalid or unwritable path, the tool proceeds to parse the ONNX model and build the engine. However, it only fails at the very end when attempting to serialize the engine, wasting time and resources.
This issue is created to introduce the following pull request: #4449
Environment
This issue should occur regardless of the system configuration.
Steps To Reproduce
trtexec --onnx=model.onnx --saveEngine=/invalid_path/engine.trt
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the trtexec entry point and reproduce with the provided command using an invalid --saveEngine path. Done means trtexec rejects an invalid or unwritable engine path before parsing the ONNX model or building the engine; review pull request #4449 for the work already proposed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 25/100