Index array dimension as fraction of that dimension

后端 未结 0 1660
没有蜡笔的小新
没有蜡笔的小新 2021-02-12 12:40

Is there any shorter way to do below?

x[:, :x.shape[1]//2]

For n-th dim I\'d need to fetch

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