[Bug]: identify_dynamic_embeddings
does not work for DataPair
#3614
Labels
bug
Something isn't working
identify_dynamic_embeddings
does not work for DataPair
#3614
Describe the bug
The training util
identify_dynamic_embeddings
does not look properly at the embeddings for thefirst
andsecond
. It probably makes more sense to have a member function for eachDataPoint
class, instead of checkingisinstance
within an external function. There could still be an outer function that iterates over data points in a batch, but it should itself callidentify_dynamic_embeddings_point
for each data point it iterates over. I would say thatidentify_dynamic_embeddings
should be calledidentify_dynamic_embeddings_batch
, but that would change the API.To Reproduce
Expected behavior
This should return
['dynamic']
Logs and Stack traces
Screenshots
No response
Additional Context
No response
Environment
Versions:
Flair
0.15.1
Pytorch
2.6.0+cu124
Transformers
4.48.2
GPU
False
The text was updated successfully, but these errors were encountered: