I'm using keras with tensorflow 1.9 backend and I have made my custom loss function. I got confused how to plot my custom loss function into tensorboard. I have tried several examples but none of them plot into tensorboard.
Here I add the example of my custom loss function code. What I want here is to plot this loss_1, loss_2, and loss_total in tensorboard. Does anyone know how to do it?
Thank you
def loss_1():
return K.mean(-0.5*var_1)
def loss_2(x, var2):
return K.mean(0.5*x + var_2)
def loss_total(x, var_z):
return 0.5 * loss_2(x, var_z) + loss_1()