-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stack-info: PR: #39, branch: drisspg/stack/2
- Loading branch information
Showing
4 changed files
with
103 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,19 @@ | ||
from transformer_nuggets import quant as quant, utils as utils | ||
|
||
|
||
def init_logging(): | ||
""" | ||
Configure logging for transformer_nuggets library at INFO level. | ||
Adds a StreamHandler if none exists. | ||
""" | ||
import logging | ||
|
||
logger = logging.getLogger("transformer_nuggets") | ||
logger.setLevel(logging.INFO) | ||
|
||
if not logger.handlers: | ||
handler = logging.StreamHandler() | ||
formatter = logging.Formatter("%(name)s - %(levelname)s - %(message)s") | ||
handler.setFormatter(formatter) | ||
logger.addHandler(handler) | ||
logger.propagate = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters