neuralmagic / deepsparse

Sparsity-aware deep learning inference runtime for CPUs
https://neuralmagic.com/deepsparse/
Other
2.94k stars 169 forks source link

[V2 Logger] registry for default func/class #1539

Closed horheynm closed 5 months ago

horheynm commented 6 months ago
Screenshot 2024-01-17 at 1 54 56 PM

Desctiption

Set up a registry folder and save all func, clases in the __init__ of the registry folder.

Functions

Has: max, average, identity

Loggers

PythonLogger (default import logging) ListLogger (log will append to a list) Prometheus logger is a tweaked version of the exiting prometheus logger: https://github.com/neuralmagic/deepsparse/blob/main/src/deepsparse/loggers/prometheus_logger.py tests are also the tweaked version of the exiting: https://github.com/neuralmagic/deepsparse/blob/main/tests/deepsparse/loggers/test_prometheus_logger.py