質問編集履歴

2

内容をさらに修正しました。

2022/04/05 03:08

投稿

onebefore
onebefore

スコア0

test CHANGED
File without changes
test CHANGED
@@ -10,7 +10,7 @@
10
10
  ```
11
11
  以下のような出力を出すように加筆したいです.
12
12
  ```
13
- [tensor([[36., 36., 36., 36.],[37.,37.,37.,37.,],[38.,38.,38.,38]])]
13
+ np.array([[36., 36., 36., 36.],[37.,37.,37.,37.,],[38.,38.,38.,38]])
14
14
  ```
15
15
 
16
16
  お手数ですが, よろしくお願いします.

1

内容の修正です.

2022/04/05 03:05

投稿

onebefore
onebefore

スコア0

test CHANGED
@@ -1 +1 @@
1
- データの形式を変換したい
1
+ データの形式を変換しつつ, まとめたい
test CHANGED
@@ -1,14 +1,16 @@
1
1
  ### 前提
2
- tensorの動きが分からず困っています
2
+ tensorの動きが分からず, 困っています.
3
3
 
4
4
  ### 実現したいこと
5
5
  以下のような出力で結果が出ているので
6
6
  ```
7
7
  [tensor(36., device='cuda:0'), tensor(36., device='cuda:0'), tensor(36., device='cuda:0'), tensor(36., device='cuda:0')]
8
+ [tensor(37., device='cuda:0'), tensor(37., device='cuda:0'), tensor(37., device='cuda:0'), tensor(37., device='cuda:0')]
9
+ [tensor(38., device='cuda:0'), tensor(38., device='cuda:0'), tensor(38., device='cuda:0'), tensor(38., device='cuda:0')]
8
10
  ```
9
- 以下のような出力を出すように加筆したいです
11
+ 以下のような出力を出すように加筆したいです.
10
12
  ```
11
- [tensor([[36,36,36,36]])]
13
+ [tensor([[36., 36., 36., 36.],[37.,37.,37.,37.,],[38.,38.,38.,38]])]
12
14
  ```
13
15
 
14
- お手数ですがよろしくお願いします
16
+ お手数ですが, よろしくお願いします.