lucidrains/magvit2-pytorch

Maybe a small bug at magvit2_pytorch.py#L1236?

Closed this issue · 1 comments

Residual(TokenShift(FeedForward(dim, dim_cond = dim_cond)))

I noticed dim_cond is added into FeedForward with the block under elif layer_type == 'attend_time':. Shouldn't it be added into the block under elif layer_type == 'cond_attend_space': where dim_cond is currently missing in FeeForward?

@AIWanderer-X indeed! thank you again!