(x: Tensor, stats=None)
| 161 | |
| 162 | |
| 163 | def get_batch_stats(x: Tensor, stats=None): |
| 164 | out = { |
| 165 | "min": torch.min(x).item(), |
| 166 | "max": torch.max(x).item(), |
| 167 | "mean": torch.mean(x).item(), |
| 168 | "std": torch.std(x).item(), |
| 169 | } |
| 170 | return out |
| 171 | |
| 172 | |
| 173 | def un_normalize_ims(ims): |
nothing calls this directly
no outgoing calls
no test coverage detected