fast.ai Course Forums
Focal Loss error: no implementation found for 'torch.nn.functional.cross_entropy'
fastai
Redevil
(Mario)
March 24, 2022, 10:55pm
8
Thanks
I have solved using
torch.as_tensor()
.
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'>]
show post in topic