I\'m trying to build a custom loss function in Keras v2.4.3: (as explained in the answer: [https://stackoverflow.com/questions/48345755/use-layer-output-in-keras-custom-loss