Skip to content

Commit

Permalink
Add: debug msg when loading echecker model in fluerr.
Browse files Browse the repository at this point in the history
  • Loading branch information
Labbeti committed Jul 24, 2023
1 parent 2eae3fe commit 9d97040
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/aac_metrics/functional/fluerr.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,12 @@ def __load_pretrain_echecker(
pylog.debug(f"Loading echecker model from '{file_path}'.")

model_states = torch.load(file_path)

if verbose >= 2:
pylog.debug(
f"Loading echecker model type '{model_states['model_type']}' with '{model_states['num_classes']}' classes."
)

echecker = BERTFlatClassifier(
model_type=model_states["model_type"],
num_classes=model_states["num_classes"],
Expand Down

0 comments on commit 9d97040

Please sign in to comment.