MCPcopy Create free account
hub / github.com/MegEngine/MegCC / find_file_name

Function find_file_name

compiler/script/debug/parse_mgb_bin_dump.py:54–61  ·  view source on GitHub ↗
(dir_path, varid)

Source from the content-addressed store, hash-verified

52
53
54def find_file_name(dir_path, varid):
55 temp_str = "var={id:" + varid + ","
56 if os.path.isdir(dir_path):
57 file_names = os.listdir(dir_path)
58 for file_name in file_names:
59 tensor, tensor_name = load_tensor_binary(dir_path + file_name)
60 if tensor_name.startswith(temp_str):
61 return file_name
62
63
64dir_path = "/home/liujunjie/gitlab/megcc/compiler/build_host/bin_dump/"

Callers 1

Calls 1

load_tensor_binaryFunction · 0.85

Tested by

no test coverage detected