Pytorch does not have a built-in libary torch.metrics for model evaluation metrics. This python library serves as a custom library to provide common evaluation metrics in Pytorch, similar to tf.keras.metrics. This is similar to the metrics library in PyTorch Lightning.