Search code examples
pythondeep-learningcomputer-visionfast-ai

no implementation found for 'torch.nn.functional.smooth_l1_loss'


I am trying to use the fastai library to build a machine learning model for object detection. I'm not an expert in machine learning, so I searched online and found this tutorial at object detection tutorial but when I used Google colab to run it, I got error saying: TypeError: no implementation found for 'torch.nn.functional.smooth_l1_loss' on types that implement torch_function: [<class 'fastai.torch_core.TensorImage'>, <class 'fastai.vision.core.TensorBBox'>] And I've also tried a 2018 version of the same tutorial before but ran into the same problem. Does anyone know what's going on?


Solution

  • The repository you referred to in your question is outdated a/c to their README here.

    You can find instructions to go to the latest versions of notebooks there.