MCPcopy Create free account
hub / github.com/apple/ml-pointersect / test_step

Method test_step

cdslib/core/script/base_train.py:1169–1179  ·  view source on GitHub ↗

One training step. Return a dictionary that will be passed to logging.

(
            self,
            epoch: int,
            bidx: int,
            batch: T.Any,
    )

Source from the content-addressed store, hash-verified

1167 @customer
1168 @abstractmethod
1169 def test_step(
1170 self,
1171 epoch: int,
1172 bidx: int,
1173 batch: T.Any,
1174 ) -> T.Dict[str, T.Any]:
1175 """One training step.
1176
1177 Return a dictionary that will be passed to logging.
1178 """
1179 raise NotImplementedError
1180
1181 @customer
1182 def visualize_test_step(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected