数据结构
冬日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 · 220 阅读 · 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 · 10451 阅读 · 2 评论