mirror of
https://github.com/GokuMohandas/Made-With-ML.git
synced 2026-03-09 07:12:37 -05:00
Foundations --> Embeddings #32
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gitgithan on GitHub (Oct 19, 2021).
3. We'll apply convolution via filters (filter_size, vocab_size, num_filters)should beembedding_dimto replacevocab_size?first have to decicepadding our inputs before convolution to result is outputsisshould beindevice = torch.device("cpu")moves things back to cpu.interpretable_trainer.predict_step(dataloader)breaks withAttributeError: 'list' object has no attribute 'dim'. The precise step isF.softmax(z), where for interpretable_model, z is a list of 3 items and it was trying to softmax a list instead of a tensor.@GokuMohandas commented on GitHub (Oct 19, 2021):
1-3: thanks for these.
4. You usually want to do inference on CPU/TPU (optimized for forward pass) so you don't waste a machine with a GPU (which is usually reserved for training with backprop).
5. good catch, I've updated the code on the webpage to look like this now:
@JellenRoberts commented on GitHub (Oct 20, 2021):
Hi,
I have been part of this thread and have no idea how to end these emails.
Any idea?
Thanks!
On Tue, 19 Oct 2021 at 19:25, Goku Mohandas @.***>
wrote:
@GokuMohandas commented on GitHub (Oct 20, 2021):
hey @JellenRoberts , I'm sorry but I'm not entirely sure either but I agree that we don't have to open issues this frequently. @gitgithan I sent you a LinkedIn request so let's chat on there for all future minor issues and clarifications because I think more than a thousand people are watching this repo so they are actively getting emails for every single conversation. We can share any large implications here for the whole community as we come across them.