![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
冬日and暖阳
Github: https://github.com/pengfeidip
邮箱:pengfeidip@qq.com
展开
-
数据结构学习(一):树的遍历
数据结构学习 树的遍历 不同的遍历方法 Pre-order Traversal 前序遍历 \qquad 从根节点开始, 然后遍历左节点,最后再遍历右节点. In-order Traversal遍历 \qquad 先遍历左节点, 再遍历根节点, 最后遍历右节点. Post-order Traversal \qquad 先遍历左节点, 再遍历右节点, 最后遍历根节点 Rec...原创 2018-05-09 08:25:37 · 212 阅读 · 0 评论 -
pytorc torch.uint8与torch.long/ torch. float
版本: pytorch1.0 目的: tensor中的index与mask 例子 下面针对torch.long 与torch.uint8数据类型在index/mask 中的不同作用进行分析 t = torch.rand(4,2) """ tensor([[0.5492, 0.2083], [0.3635, 0.5198], [0.8294, 0.9869], ...原创 2019-06-06 13:37:09 · 10387 阅读 · 2 评论