1ee5315ea20d845952e8938a57b7ecd85ed14a15,mmcv/tensorrt/tensorrt_utils.py,,onnx2trt,#,5
Before Change
if isinstance(onnx_model, str):
assert parser.parse_from_file(onnx_model), "parse onnx failed."
else:
assert parser.parse(
onnx_model.SerializeToString()), "parse onnx failed."
// config builder
builder.max_workspace_size = max_workspace_size
After Change
if not parser.parse(onnx_model.SerializeToString()):
error_msgs = ""
for error in range(parser.num_errors):
error_msgs += f"{parser.get_error(error)}\n"
raise RuntimeError(f"parse onnx failed:\n{error_msgs}")
// config builder
builder.max_workspace_size = max_workspace_size
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: open-mmlab/mmcv
Commit Name: 1ee5315ea20d845952e8938a57b7ecd85ed14a15
Time: 2021-02-22
Author: streetyao@live.com
File Name: mmcv/tensorrt/tensorrt_utils.py
Class Name:
Method Name: onnx2trt
Project Name: victoresque/pytorch-template
Commit Name: 6027fdf7aa77c038bf533ebcf7b704b1c79c3bc4
Time: 2018-09-16
Author: sunq0313@gmail.com
File Name: model/metric.py
Class Name:
Method Name: my_metric2
Project Name: openai/pixel-cnn
Commit Name: 420747a2f5f6f23b84f62f9a00481ef53a4a4623
Time: 2016-11-11
Author: tim@Tims-MacBook-Pro.local
File Name: train.py
Class Name:
Method Name: sample_from_model