PyTorch model์ weight๊ฐ์ ๋ฐ๋ก ๋ฐ๊พธ๋ ค๊ณ ํ๋ฉด FloatTensor์ parameter๋ก ์ฌ์ฉํ ์ ์๋ค๋ ์๋ฌ๊ฐ ๋ฐ์ํ๋ค. import torch.nn as nn model = nn.Sequential(nn.Linear(10, 5), nn.ReLU(), nn.Linear(5, 4, bias=False)) model[2].weight = model[2].weight/2. >> cannot assign 'torch.FloatTensor' as parameter 'weight' (torch.nn.Parameter or None expected) ํ์ต ๋์ค ์ฌ์ฉํ๋ weight normalization์ nn.utils.weight_norm์ ์ฌ์ฉํ๋ฉด ๋๋ ๊ฒ ๊ฐ์ง๋ง, ๋ฐ๋ก weight ๊ฐ์ ..