About custom loss in tensorflow


Can anyone tell on how to get the internal code for this focal loss for tensorflow

You’d have to investigate whether TensorFlow publishes their source code.

1 Like

Maybe start there

3 Likes

Hello @SASWATA_MAITY,

Yes, I do what @ai_curious suggests all the time. For example, I followed it like below

Good thing of Github is that, after you click on a name, it may give you where it is defined in the right menu, so from there I go to the other function.

You see, not all the time do we immediately see the code that writes the algorithm, actually very often I had to trace 5 or even more levels because it is common that my target function is wrapped over by layers and layers of functions. Luckily, for the one you concern about, it will be quick to get to the bottom!

Cheers,
Raymond

1 Like

found it

ohhh thanks raymond for the information, its a great help, i wll surely look into it

1 Like