@@ -52,7 +52,8 @@ def check_perf_global(self):
5252 True if test passes else False
5353 """
5454
55- if 'perf_analyzer_flags' in self ._config and 'percentile' in self ._config ['perf_analyzer_flags' ]:
55+ if 'perf_analyzer_flags' in self ._config and 'percentile' in self ._config [
56+ 'perf_analyzer_flags' ]:
5657 with open (self ._analyzer_log , 'r' ) as f :
5758 contents = f .read ()
5859
@@ -80,13 +81,15 @@ def check_perf_mode_time_window(self):
8081 True if test passes else False
8182 """
8283
83- if 'perf_analyzer_flags' in self ._config and 'measurement-mode' in self ._config ['perf_analyzer_flags' ]:
84+ if 'perf_analyzer_flags' in self ._config and 'measurement-mode' in self ._config [
85+ 'perf_analyzer_flags' ]:
8486 with open (self ._analyzer_log , 'r' ) as f :
8587 contents = f .read ()
8688
8789 # In contents, search for "stabilizing with px latency"
88- measurement_mode = self ._config ['perf_analyzer_flags' ]['measurement-mode' ]
89- assert (measurement_mode == 'time_windows' )
90+ measurement_mode = self ._config ['perf_analyzer_flags' ][
91+ 'measurement-mode' ]
92+ assert (measurement_mode == 'time_windows' )
9093 token = "time_windows"
9194
9295 # Ensure the token appears in the text
@@ -229,7 +232,7 @@ def check_triton_per_model(self):
229232 args = parser .parse_args ()
230233
231234 with open (args .config_file , 'r' ) as f :
232- config = yaml .load (f , Loader = yaml .FullLoader )
235+ config = yaml .safe_load (f , Loader = yaml .FullLoader )
233236
234237 TestOutputValidator (config , args .profile_models , args .analyzer_log_file ,
235238 args .triton_log_file )
0 commit comments