First of all, I used Keras to build a model. I ask this question because my model cannot be compiled when custom loss returns a scaler, but can be complied when custom loss