MCPcopy Create free account
hub / github.com/pytorch/pytorch / get_pytorch_folder

Function get_pytorch_folder

tools/code_coverage/package/oss/utils.py:42–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40
41
42def get_pytorch_folder() -> str:
43 # TOOLS_FOLDER in oss: pytorch/tools/code_coverage
44 return os.path.abspath(
45 os.environ.get(
46 "PYTORCH_FOLDER", os.path.join(TOOLS_FOLDER, os.path.pardir, os.path.pardir)
47 )
48 )
49
50
51def detect_compiler_type() -> Optional[CompilerType]:

Callers 7

transform_file_nameFunction · 0.90
is_intrested_fileFunction · 0.90
get_oss_binary_folderFunction · 0.85
get_oss_shared_libraryFunction · 0.85
get_gcda_filesFunction · 0.85
print_init_infoFunction · 0.85
html_oriented_reportFunction · 0.85

Calls 2

getMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…