エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント1件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
RuntimeError: input is not contiguous
When i reshape a tensor (if the rank is changed), i get the following error. x = ... # Tensor of ... When i reshape a tensor (if the rank is changed), i get the following error. x = ... # Tensor of shape (100, 20) x.view(-1) # expect a tensor of shape (2000) RuntimeError: input is not contiguous What does ‘contiguous’ mean and why does this error occur? It means that your tensor is not a single block of memory, but a block with holes. view can be only used with contiguous tensors, so if you need



2018/03/09 リンク