Skip to content

fix bug

fix bug #22705

Triggered via push November 1, 2023 22:19
Status Success
Total duration 31s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention
Validation
21s
Validation
Fit to window
Zoom out
Zoom in

Annotations

144 warnings
[cpplint] include/onnxruntime/core/session/onnxruntime_c_api.h#L4515: include/onnxruntime/core/session/onnxruntime_c_api.h#L4515
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
[cpplint] onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L664: onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L664
Redundant blank line at the start of a code block should be deleted. [whitespace/blank_line] [2]
[cpplint] onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L869: onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L869
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
[cpplint] onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L869: onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L869
Redundant blank line at the start of a code block should be deleted. [whitespace/blank_line] [2]
[cpplint] onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L2167: onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L2167
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
[cpplint] onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L2365: onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L2365
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
[cpplint] onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L2377: onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L2377
Using C-style cast. Use reinterpret_cast<char*>(...) instead [readability/casting] [4]
[cpplint] onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L2387: onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L2387
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
[cpplint] onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L2404: onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L2404
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
[cpplint] onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L2437: onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L2437
Missing username in TODO; it should look like "// TODO(my_username): Stuff." [readability/todo] [2]
[cpplint] onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L2640: onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L2640
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
[cpplint] onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L2818: onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L2818
If an else has a brace on one side, it should have it on both [readability/braces] [5]
[cpplint] onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L2967: onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L2967
Using C-style cast. Use reinterpret_cast<char*>(...) instead [readability/casting] [4]
[cpplint] onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L3127: onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L3127
Missing username in TODO; it should look like "// TODO(my_username): Stuff." [readability/todo] [2]
[cpplint] onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L3222: onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L3222
Using C-style cast. Use reinterpret_cast<char*>(...) instead [readability/casting] [4]
[cpplint] onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L3822: onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.cc#L3822
Small and focused functions are preferred: TensorrtExecutionProvider::CreateNodeComputeFromOrtGraph() has 953 non-comment lines (error triggered by exceeding 500 lines). [readability/fn_size] [1]
[cpplint] onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.h#L534: onnxruntime/core/providers/tensorrt/tensorrt_execution_provider.h#L534
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
[cpplint] onnxruntime/core/providers/tensorrt/tensorrt_execution_provider_utils.h#L17: onnxruntime/core/providers/tensorrt/tensorrt_execution_provider_utils.h#L17
For a static/global string constant, use a C style string instead: "static const char EP_CONTEXT_OP_TYPE[]". [runtime/string] [4]
[cpplint] onnxruntime/core/providers/tensorrt/tensorrt_execution_provider_utils.h#L18: onnxruntime/core/providers/tensorrt/tensorrt_execution_provider_utils.h#L18
For a static/global string constant, use a C style string instead: "static const char EP_CONTEXT_ATTR_EMBED_MODE[]". [runtime/string] [4]
[cpplint] onnxruntime/core/providers/tensorrt/tensorrt_execution_provider_utils.h#L19: onnxruntime/core/providers/tensorrt/tensorrt_execution_provider_utils.h#L19
For a static/global string constant, use a C style string instead: "static const char EP_CONTEXT_ATTR_CACHE_CTX[]". [runtime/string] [4]
[cpplint] onnxruntime/core/providers/tensorrt/tensorrt_execution_provider_utils.h#L747: onnxruntime/core/providers/tensorrt/tensorrt_execution_provider_utils.h#L747
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
[cpplint] onnxruntime/core/session/custom_ops.cc#L314: onnxruntime/core/session/custom_ops.cc#L314
Lines should be <= 120 characters long [whitespace/line_length] [2]
[cpplint] onnxruntime/core/session/custom_ops.cc#L317: onnxruntime/core/session/custom_ops.cc#L317
Lines should be <= 120 characters long [whitespace/line_length] [2]
[cpplint] onnxruntime/core/session/ort_apis.h#L187: onnxruntime/core/session/ort_apis.h#L187
Lines should be <= 120 characters long [whitespace/line_length] [2]
[cpplint] onnxruntime/test/providers/cpu/nn/dropout_op_test.cc#L33: onnxruntime/test/providers/cpu/nn/dropout_op_test.cc#L33
Lines should be <= 120 characters long [whitespace/line_length] [2]