Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/deepspeedai/DeepSpeed
/ validation_step
Method
validation_step
tests/lightning/test_simple.py:39–41 ·
view source on GitHub ↗
(self, batch, batch_idx)
Source
from the content-addressed store, hash-verified
37
return
{
"loss"
: loss}
38
39
def
validation_step(self, batch, batch_idx):
40
loss = self(batch).sum()
41
self.log(
"valid_loss"
, loss)
42
43
def
test_step(self, batch, batch_idx):
44
loss = self(batch).sum()
Callers
nothing calls this directly
Calls
1
log
Method · 0.45
Tested by
no test coverage detected