alibaba-edu / Ranking-based-Instance-Selection

Ranking-based-Instance-Selection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question about the window size operation

Mahiro2211 opened this issue · comments

commented

thanks for sharing the code
but I found that in the contrastive_memory_prism loss file
it shows that

self.margin_window=self.margin_window[-1:]

before taking a sum operation, the self.margin_windows only contains one element. I'm a bit confused and would appreciate some insight.