Hello,

Happy new year all!

I am new to Fastai and I posting a question for the first time.

I was going through Lesson 4 of the part 1 (2020). I see that in the beginning there are 2 loss functions that are already defined, L1 and L2 and it is already defined in PyTorch. My question is why cant use the same as the MNIST loss function. What is the need to define a new loss function?

I tried to use the loss function defined in Pytorch on the example given in the chapter -

```
trgts = tensor([1,0,1])
prds = tensor([0.9, 0.4, 0.2])
F.mse_loss(prds,trgts).sqrt()
```

and I see the loss to be 0.5196 which is not terribly bad than what was calculated with the other loss function - 0.4333. Then why not use the existing loss function?

Can someone clarify?

Thanks