Skip to content

Commit

Permalink
fix timing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
simplymathematics committed Nov 29, 2023
1 parent 3eb34d7 commit cf64d90
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deckard/base/model/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,10 @@ def __call__(self, data: list, model: object, library=None):
raise NotImplementedError(f"Training library {library} not implemented")
try:
start = process_time_ns()
start_timestamp = time()
model.fit(data[0], data[2], **trainer)
end = process_time_ns() - start
end_timestamp = time()
except np.AxisError: # pragma: no cover
from art.utils import to_categorical

Expand Down

0 comments on commit cf64d90

Please sign in to comment.