What is the expected behaviour when the same dimension occurs in both input_dims
and batch_dims
?
#199
Replies: 1 comment
-
From looking at #132 (comment) it seems like the expected behaviour is to first split the dimension into patches that each have This leads me to believe that the above tests fail because of an issue with It is also not the behaviour that I would have expected. My intuition was that the dimension would first be split into patches that each have I'm not sure that my intuition is better, but if my understanding of the expected behaviour is correct, I think that it needs better documentation because at the very least it seems to run counter to the default of discarding partial last batches. |
Beta Was this translation helpful? Give feedback.
-
It doesn't seem to be well documented what is supposed to happen when the same dimension appears in both
input_dims
andbatch_dims
so to try and figure it out myself I started digging throughtesting.py
andtest_generators.py
and ending up parametrizingtest_batch_1d_concat_duplicate_dims
to run more cases like so:Which when run with pytest gives me the following:
In each of the failed cases it is
validate_batch_dimensions
that causes the failure with theinput_batch
length ofds_batch
being 1 greater than theinput_batch
length of theexpected_dims
.Since I'm not sure what the expected behaviour is, I can't tell if the issue is with xbatcher itself or with
validate_batch_dimensions
, so I'm wondering if someone would be able to explain to me what is supposed to happen?Beta Was this translation helpful? Give feedback.
All reactions