Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
6124-add-training-attribute-check (#6132)
Fixes #6124 . ### Description When running the inference with torchscript wrapped TensorRT models, the evaluator would give an error. This is caused by the `with engine.mode()` code run the `training` method of `engine.network` without checking. In this PR, an attribute check has been added to cover this issue. ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [ ] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [ ] In-line docstrings updated. - [ ] Documentation updated, tested `make html` command in the `docs/` folder. --------- Signed-off-by: binliu <binliu@nvidia.com>
- Loading branch information