Domagoj Alagić

Results comments of Domagoj Alagić

Agreed! There is a chance we are not using the permutation mask and target mapping correctly, but I am suspicious as the documentation's example is not working very well either.

Thanks for the reply! Even though using a list comprehension is a tad bit nicer, I still believe having to do the filtering by yourself is unnecessary. As for your...

@bingo619 Thanks for the reply! Unfortunately, it's not that easy. It is not always possible to make the decision about having `Tensor` vs. having `Parameter`. For example, consider the `Embedding.from_pretrained()`...

@apaszke Agreed! Let me know whether you want me to make a PR that does that or will you handle it yourself. (Or we'll wait for more people to share...

I find it a bit weird that `unk_init `is passed around various functions and constructors as an argument. In the above example, one could pass `unk_init `to the `GloVe `constructor...

@jekbradbury What would be preferred out of those two? I could make a PR for this.

@jekbradbury I've been searching through the codebase, but I wasn't able to find anything. It seems that after the vectors are finally loaded, it's up to user's model to deal...

Can you provide the full code? Some variables are not yet defined in your snippet. Also, use code formatting ("" ) for better readability.

@zhzhang I might be missing something, but I haven't been able to reproduce the exception. Could you please provide your code snippet and exactly what folders and files exist at...

Your code will work if you pass the `unk_init` to the `GloVe` constructor, and not the `Vocab` one: `vectors = GloVe(name='twitter.27B', dim='25', unk_init=torch.Tensor.normal_)` I guess that if you are manually...