問題:
Is there a quick way to "sub-flatten" or flatten only some of the first dimensions in a numpy array? 有沒有一種快速的方法來“平整”或平整一些numpy數組中的第一個維度?
For example, given a numpy array of dimensions (50,100,25)
, the resultant dimensions would be (5000,25)
例如,給定一個numpy維數(50,100,25)
,結果維數爲(5000,25)