MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / match_test_func

Function match_test_func

python/oneflow/test/gen_ops_process.py:187–199  ·  view source on GitHub ↗

func: operator name func_list: names of all operators Check whether func_list contains func. If yes, return matching content, or else return "".

(func, func_list)

Source from the content-addressed store, hash-verified

185
186
187def match_test_func(func, func_list):
188 """
189 func: operator name
190 func_list: names of all operators
191
192 Check whether func_list contains func. If yes, return matching content, or else return "".
193 """
194 match_res = ""
195 for i in range(len(func_list)):
196 if pure_match(func_list[i], func):
197 match_res = func_list[i]
198 break
199 return match_res
200
201
202if __name__ == "__main__":

Callers 1

gen_ops_process.pyFile · 0.85

Calls 1

pure_matchFunction · 0.85

Tested by

no test coverage detected