Skip to content

Commit

Permalink
Fix typo (#56): non_zero -> nonzero
Browse files Browse the repository at this point in the history
  • Loading branch information
npuichigo authored and ShusenTang committed Oct 31, 2019
1 parent 4ea05a5 commit 004905e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/chapter02_prerequisite/2.2_tensor.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ tensor([1.6035, 1.8110, 0.9549])
|:---:|:---:|
|index_select(input, dim, index)|在指定维度dim上选取,比如选取某些行、某些列|
|masked_select(input, mask)|例子如上,a[a>0],使用ByteTensor进行选取|
|non_zero(input)| 非0元素的下标|
|nonzero(input)| 非0元素的下标|
|gather(input, dim, index)|根据index,在dim维度上选取数据,输出的size与index一样|

这里不详细介绍,用到了再查官方文档。
Expand Down

0 comments on commit 004905e

Please sign in to comment.