I am trying to pass meta-data, for the reference labels that i will be using in a custom loss function. I am accessing the input (to model), labels, meta-data through the data loader. however I can’t seem to figure out a way to pass the meta-data to the loss function while fetching it from the data loader, as it keeps giving me an error saying the y_true labels don’t match with that of the expected model outputs. Does anyone have any idea how to pass meta-data from data loader into the loss function?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Tensorflow error | 1 | 262 | August 7, 2023 | |
Create custom loss function which use dictionary gives error | 1 | 257 | February 7, 2024 | |
Error reported by Custom loss function | 2 | 848 | February 6, 2023 | |
How to add Keras layer output to a custom loss component? | 1 | 1974 | December 14, 2023 | |
Issue with GradientTape for a custom loss function, TF2.6 | 4 | 2333 | November 27, 2021 |