質問するログイン新規登録

質問編集履歴

1

after_yの空tensorを作成

2022/12/19 14:43

投稿

taku_t
taku_t

スコア47

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])