Answers for "'pytorch_lightning' has no attribute 'metrics'"

0

'pytorch_lightning' has no attribute 'metrics'

The 'pytorch_lightning.metrics' has been updated to 'torchmetrics' package.
Try changing:

import pytorch_lightning.metrics 
to 
import torchmetrics

Then replace all 'pytorch_lightning.metrics' with 'torchmetrics' in your code.
Posted by: Guest on March-06-2022

Code answers related to "'pytorch_lightning' has no attribute 'metrics'"

Python Answers by Framework

Browse Popular Code Answers by Language