索引與切片

索引與切片 對tensor來的 1 indexing 2 select first/ last N 用冒號來操作,python自帶的,左閉右開 3 select by steps 一個 : 代表是從哪到哪,比如 1:10 == [1, 10) 1:10 :2後面這個2是step == 1, 3, 5 ,7 ,9 花裏胡哨 4 select by specific index 瞅一瞅 主要是inde
相關文章
相關標籤/搜索