Efficient Metric Collection in PyTorch: Avoiding the Performance Pitfalls of TorchMetricsEfficient metric collection is crucial for optimizing training performance in machine learning projects.