Remove old comments

This commit is contained in:
Paul O'Leary McCann 2021-06-17 21:22:17 +09:00
parent a62121e3b4
commit ccf561112a

View File

@ -413,13 +413,10 @@ def ant_scorer_forward(
offset = 0 offset = 0
for dy, (prod_back, pw_sum_back), ll in zip(dYscores, backprops, veclens): for dy, (prod_back, pw_sum_back), ll in zip(dYscores, backprops, veclens):
# I'm not undoing the operations in the right order here.
dyscore, dyidx = dy dyscore, dyidx = dy
# the full score grid is square # the full score grid is square
fullscore = ops.alloc2f(ll, ll) fullscore = ops.alloc2f(ll, ll)
# cupy has no put_along_axis
# xp.put_along_axis(fullscore, dyidx, dyscore, 1)
for ii, (ridx, rscores) in enumerate(zip(dyidx, dyscore)): for ii, (ridx, rscores) in enumerate(zip(dyidx, dyscore)):
fullscore[ii][ridx] = rscores fullscore[ii][ridx] = rscores