Yinggang Wang

Results 16 issues of Yinggang Wang

修复 set_acc_grad 后,再 backward 梯度没有正确累加的问题。 ```python # import oneflow as flow import torch as flow value = flow.tensor([[-0.0875, -0.4890, 0.9031], [ 0.4930, -0.6041, -1.5392]]).requires_grad_() value.grad = flow.randn((2, 3)) output =...

automerge
bug
eager

修复所有 Tensor 初始化方法对 non-contiguous Tensor 访问内存错误的问题,并添加相关测试

automerge
bug
eager

一些搭好并配好 sbp 的 global 模型想做扩展时,可能会迁移过来一些 local module,组成一个 global module 和 local module 混合的情况,这时如果想对其中的 local module 做统一的 to_global 操作并跳过 local tensor 的话,需要用内部接口 `_apply` 并手动写一个处理函数,这种方式对于一般用户是比较难做到的。 需要讨论一下是否有必要对 to_global 加一个参数(`skip_global_tensor=False` 之类的,参数名可以再讨论),来表示是否在 to_global 时,跳过已经是 global...

enhancement

部分歌曲获取url会得到`None`值引发bug。

https://github.com/chxuan/vimplus/blob/master/README.md?plain=1#L77 https://github.com/chxuan/vimplus/blob/master/README.md?plain=1#L87 这里是 shell 命令,用 `#` 表示注释更合适一些( `./install.sh # 不加sudo` ),对于无脑复制粘贴的用户也不会报错。

[.vimrc](https://github.com/chxuan/vimplus/blob/master/.vimrc#L329) 中LeaderF改成了从当前目录开始搜索,而help.md中快捷键说明还是从 `~` 目录搜索。

## Summary eager global 下 detach 接口获得结果的 autograd 属性不符合预期,影响后续后向图构图。 ## Code to reproduce bug ```python cuda_placement = flow.placement("cuda", [0, 1]) cpu_placement = flow.placement("cpu", [0, 1]) B = flow.sbp.broadcast a =...

bug
community

## Summary Pytorch kernel implements the “round half to even” to break ties when a number is equidistant from two integers (e.g. round(2.5) is 2). ( https://pytorch.org/docs/stable/generated/torch.round.html#torch.round ) ## Code...

bug
community

## Summary Multidimensional indexing with non-tuple values is not allowed. Previously, code such as arr[ind] where ind = [[0, 1], [0, 1]] produced a FutureWarning and was interpreted as a...

bug
community

fix #9390 使 tensor.retain_grad 和 autograd.grad 解耦,同时重新考虑 GraphTask 内的数据结构,减小查表次数

enhancement
bug
eager