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

Function get_logger

examples/qualcomm/qaihub_scripts/utils/export.py:33–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31
32
33def get_logger():
34 logger = logging.getLogger("aihub.utils.export")
35 handler = logging.StreamHandler()
36 handler.setFormatter(
37 logging.Formatter(
38 fmt="[%(asctime)s %(prefix)s] %(levelname)-8s: %(message)s",
39 datefmt="%Y-%m-%d %H:%M:%S",
40 )
41 )
42 logger.addHandler(handler)
43 logger.setLevel(logging.INFO)
44 logger.propagate = False
45 return logging.LoggerAdapter(logger, extra={"prefix": "UTILS.EXPORT"})
46
47
48def get_io_info(prog_info, ctx_bin_path, compiler_specs):

Callers 2

compileFunction · 0.70
executeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected