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

Function get_logger

examples/qualcomm/util_scripts/cli.py:63–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61
62
63def get_logger():
64 logger = logging.getLogger("examples.qualcomm.util_scripts.cli")
65 handler = logging.StreamHandler()
66 handler.setFormatter(
67 logging.Formatter(
68 fmt="[%(asctime)s %(prefix)s] %(levelname)-8s: %(message)s",
69 datefmt="%Y-%m-%d %H:%M:%S",
70 )
71 )
72 logger.addHandler(handler)
73 logger.setLevel(logging.INFO)
74 logger.propagate = False
75 return logging.LoggerAdapter(logger, extra={"prefix": "QNN_BACKEND"})
76
77
78def get_io_info(pte_path, compiler_specs):

Callers 3

quantizeFunction · 0.70
compileFunction · 0.70
executeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected