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

Method visualize_test_step

cdslib/core/script/base_train.py:1182–1198  ·  view source on GitHub ↗
(
            self,
            epoch: int,
            total_batch_count: int,
            bidx: int,
            batch: T.Any,
            out_dict: T.Dict[str, T.Any],
            logger: Logger,
            batch_time: float,
            step_time: float,
            epoch_time: float,
    )

Source from the content-addressed store, hash-verified

1180
1181 @customer
1182 def visualize_test_step(
1183 self,
1184 epoch: int,
1185 total_batch_count: int,
1186 bidx: int,
1187 batch: T.Any,
1188 out_dict: T.Dict[str, T.Any],
1189 logger: Logger,
1190 batch_time: float,
1191 step_time: float,
1192 epoch_time: float,
1193 ):
1194 self.logger.info(
1195 f"batch uses: {batch_time:.4f} secs, "
1196 f"(step uses: {step_time:.4f} secs, "
1197 f"{step_time / batch_time * 100.:.2f}%)"
1198 )
1199
1200 @customer
1201 def finish_procedure(self):

Callers

nothing calls this directly

Calls 1

infoMethod · 0.80

Tested by

no test coverage detected