MCPcopy Create free account
hub / github.com/pytorch/executorch / get_dest_path

Function get_dest_path

examples/mediatek/aot_utils/llm_utils/utils.py:411–417  ·  view source on GitHub ↗
(output_folder, exp_name, shape=None, chunk_idx=0)

Source from the content-addressed store, hash-verified

409
410
411def get_dest_path(output_folder, exp_name, shape=None, chunk_idx=0):
412 dest_folder_root = output_folder + f"{f'_{shape}' if shape is not None else ''}"
413 os.makedirs(dest_folder_root, exist_ok=True)
414 fname = f"{exp_name}{f'_{shape}' if shape is not None else ''}_{chunk_idx}.pte"
415 dest_path = os.path.join(dest_folder_root, fname)
416
417 return dest_path
418
419
420def get_dirname(file_path):

Callers 5

export_to_et_irFunction · 0.90
export_to_et_irFunction · 0.90
export_to_et_irFunction · 0.90
export_to_et_irFunction · 0.90
export_to_et_irFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected