You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "test.py", line 5, in <module>
b.sum().backward()
File "/home/ubuntu/work/codes/oneflow/python/oneflow/framework/tensor.py", line 33, in _backward
flow.autograd.backward(self, gradient, retain_graph, create_graph)
File "/home/ubuntu/work/codes/oneflow/python/oneflow/autograd/autograd.py", line 110, in backward
backward_api(
oneflow._oneflow_internal.exception.RuntimeError: Check failed: (like.size()) >= (2) (1 vs 2)
like.size() must not less than 2, but got 1
Summary
StackFunctor 的实现逻辑是最多每 128 个 Tensor 用一个 StackOp 来处理,递归完成更多 Tensor 的 Stack 功能(
oneflow/oneflow/core/functional/impl/array_functor.cpp
Lines 567 to 572 in 9dbb458
Code to reproduce bug
The text was updated successfully, but these errors were encountered: