I'm trying to implement some loss function into Keras with Tensorflow backend. The said function being kind of tricky, I would like to come up with the following scheme:
- Through the all network, I would like to keep some information I(B) depending on the passed batch B from the input. I know this can be done by using a multi-input /output network.
- More precisely, for each batch B, I would like to retrieve the labels B_true associated, because my function I is a function of this ground truth, i.e. I(B_true)
Is this possible?
Thank you a lot!