GMvandeVen/brain-inspired-replay

where i got confuse

luyifanlu opened this issue · 1 comments

recon_batch, y_hat, mu, logvar, z = self(

i don"t understand why how can use like that ,there are no function infer.

This is indeed confusing, you could read this as self.forward(...). It has to do with the way PyTorch's forward function works, maybe this is useful: https://discuss.pytorch.org/t/any-different-between-model-input-and-model-forward-input/3690