oneflow icon indicating copy to clipboard operation
oneflow copied to clipboard

random_tensor() returns [-1, 1) for float and [-10000, 10001) for int

Open daquexian opened this issue 2 years ago • 17 comments

修复 random_tensor() 默认范围没有负数的问题,修复 random_tensor(dtype=int64) 只返回 0 的问题

daquexian avatar Mar 02 '22 11:03 daquexian

这个对应python层的函数是什么?

kaijieshi7 avatar Mar 02 '22 11:03 kaijieshi7

这个对应python层的函数是什么?

autotest 里的 random_tensor

daquexian avatar Mar 02 '22 11:03 daquexian

CI failed when running job: cpu-module. PR label automerge has been removed

github-actions[bot] avatar Mar 03 '22 07:03 github-actions[bot]

Speed stats:

github-actions[bot] avatar Mar 03 '22 07:03 github-actions[bot]

Static analysis with clang failed. PR label automerge has been removed

github-actions[bot] avatar Jun 29 '22 14:06 github-actions[bot]

CI failed when running job: cpu-module. PR label automerge has been removed

github-actions[bot] avatar Jun 29 '22 16:06 github-actions[bot]

View latest API docs preview at: https://staging.oneflow.info/docs/Oneflow-Inc/oneflow/pr/7654/

github-actions[bot] avatar Jun 29 '22 16:06 github-actions[bot]

CI failed when running job: cuda-module. PR label automerge has been removed

github-actions[bot] avatar Jun 29 '22 16:06 github-actions[bot]

Speed stats:

github-actions[bot] avatar Jun 29 '22 16:06 github-actions[bot]

View latest API docs preview at: https://staging.oneflow.info/docs/Oneflow-Inc/oneflow/pr/7654/

github-actions[bot] avatar Jul 07 '22 13:07 github-actions[bot]

Speed stats:

github-actions[bot] avatar Jul 07 '22 13:07 github-actions[bot]

View latest API docs preview at: https://staging.oneflow.info/docs/Oneflow-Inc/oneflow/pr/7654/

github-actions[bot] avatar Jul 07 '22 17:07 github-actions[bot]

CI failed when running job: cpu-module. PR label automerge has been removed

github-actions[bot] avatar Jul 07 '22 17:07 github-actions[bot]

CI failed when running job: cuda-module. PR label automerge has been removed

github-actions[bot] avatar Jul 07 '22 17:07 github-actions[bot]

Speed stats:

github-actions[bot] avatar Jul 07 '22 17:07 github-actions[bot]

CI failed when running job: cpu-module. PR label automerge has been removed

github-actions[bot] avatar Jul 08 '22 13:07 github-actions[bot]

Speed stats:

github-actions[bot] avatar Jul 08 '22 13:07 github-actions[bot]

在 https://github.com/Oneflow-Inc/oneflow/pull/9534 中继续开展

daquexian avatar Jan 09 '23 04:01 daquexian