{"author_name":"derwind","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","blog_url":"https://randommemory.hatenablog.com/","title":"\u57cb\u3081\u8fbc\u307f","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frandommemory.hatenablog.com%2Fentry%2F2021%2F10%2F24%2F192409\" title=\"\u57cb\u3081\u8fbc\u307f - \u3089\u3093\u3060\u3080\u306a\u8a18\u61b6\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","blog_title":"\u3089\u3093\u3060\u3080\u306a\u8a18\u61b6","version":"1.0","image_url":null,"categories":["machine_learning"],"url":"https://randommemory.hatenablog.com/entry/2021/10/24/192409","width":"100%","published":"2021-10-24 19:24:09","height":"190","description":"import torch import torch.nn as nn vocab_size = 4 emb_dim = 3 embeddings = nn.Embedding(vocab_size, emb_dim) print(embeddings.weight) Parameter containing: tensor([[ 0.2671, 1.1044, 0.4217], [ 0.5168, 1.4011, 1.3565], [ 2.3420, -1.9554, 0.0828], [-1.6999, 0.3869, 1.1587]],, requires_grad=True) x = t\u2026","author_url":"https://blog.hatena.ne.jp/derwind/"}