Skip to content

Commit 90115d8

Browse files
committed
r f
1 parent e6257b5 commit 90115d8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/utils/compute_loss.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,11 @@ Main loss function for hybrid models that handles both training and evaluation m
152152
- In evaluation mode (`logging.train_mode = false`):
153153
- `(loss_values, st, ŷ)`: NamedTuple of losses, state and predictions
154154
"""
155-
function compute_loss(HM::LuxCore.AbstractLuxContainerLayer, ps, st, (x, (y_t, y_nan));
156-
logging::LoggingLoss)
157-
155+
function compute_loss(
156+
HM::LuxCore.AbstractLuxContainerLayer, ps, st, (x, (y_t, y_nan));
157+
logging::LoggingLoss
158+
)
159+
158160
targets = HM.targets
159161
ext_loss = extra_loss(logging)
160162
if logging.train_mode

0 commit comments

Comments
 (0)