質問編集履歴
1
after_yの空tensorを作成
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -40,6 +40,8 @@
|
|
|
40
40
|
書き方が分からず、とりあえずやりたいことをfor文で書きました。。
|
|
41
41
|
|
|
42
42
|
```ここに言語名を入力
|
|
43
|
+
after_y = torch.zeros(y.shape)
|
|
44
|
+
|
|
43
45
|
for i in range(after_y.shape[0]):
|
|
44
46
|
for j in range(after_y.shape[1]):
|
|
45
47
|
after_y[i,j] = torch.matmul(x, y[i,j])
|