Skip to content

Commit

Permalink
feat: remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
tzole1155 committed Mar 21, 2024
1 parent d25c114 commit 4bf8ddc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions moai/serve/streaming_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,6 @@ def closure():
self.last_loss = None
self.optimizer.optimization_step = 0
metrics = self.optimizer.validation(data)
# NOTE: DEBUG
if batch_idx >=3:
break
# NOTE: DEBUG
# call postprocess
log.info(f"Fitting Metrics: {metrics}") # TODO: why metrics still have gradients?
# data["__moai__"]["batch_index"] = batch_idx
Expand Down

0 comments on commit 4bf8ddc

Please sign in to comment.