BCEloss log base


(Dimitris Chasanidis) #1

So my question is, what is the log base BCEloss uses? I read the docs, but couldn’t find anything.


#2

torch.log uses the natural logarithm, i.e. base e:

torch.log(torch.tensor(np.e))
> tensor(1.)