pred_collate_fns
- aitoolbox.torchtrain.train_loop.components.pred_collate_fns.append_predictions(y_batch, predictions)[source]
- Parameters:
y_batch (torch.Tensor) – predictions for the new batch
predictions (list) – accumulation list where all the batched predictions are appended
- Returns:
predictions list with the new tensor appended
- Return type:
- aitoolbox.torchtrain.train_loop.components.pred_collate_fns.append_concat_predictions(y_batch, predictions)[source]
- Parameters:
y_batch (torch.Tensor or list) –
predictions (list) – accumulation list where all the batched predictions are added
- Returns:
predictions list with the new tensor appended
- Return type: