Memory efficient slicing numpy array

前端 未结 0 582
闹比i
闹比i 2020-12-30 09:22

I am using the following line of code to slice a 7.4GB array:

xTrain = cp.array(db[(db[:,0]>=trainStartDate)&(db[:,0]<=trainEndDate)][:,5:])
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题