I want to use the various loss function defined in keras for calculating the loss value manually. For example:
from keras.losses import binary_crossentropy
error=binary_crossentropy([1,2,3,4],[6,7,8,9])
gives me error
AttributeError: 'list' object has no attribute 'dtype'.
Similar way I want to use other keras loss function. I have my y_pred and y_true lists/arrays.