listのサイズは10000,6,4,200です
100から150番目のものをとって50,200のlistにしたいです
200の部分はpytorchのtensor型で格納してます
tensork他をnumpyに入れるのは無理でした
試したこと
s.append(memory.buffer[brin_in_idx-self.R2D2roop:brin_in_idx,0,2]) エラーsequence index must be integer, not 'slice' a.append(memory.buffer[brin_in_idx-self.R2D2roop:brin_in_idx][0][2]) エラーsequence index must be integer, not 'tuple'
:
あなたの回答
tips
プレビュー