I\'m learning keras API in tensorflow(2.3). In this guide on tensorflow website, I found an example of custom loss funciton:
def custom_mean_squared_error
The dimensionality can be increased because of multiple channels...however, each channel should only have a scalar value for loss.