CFC-Net icon indicating copy to clipboard operation
CFC-Net copied to clipboard

在losses.py里 max_pos, armmax_pos = pos.max(0) RuntimeError: cannot perform reduction function max on tensor with no elements because the operation does not have an identity

Open IsenLwww opened this issue 1 year ago • 3 comments

在losses.py里 max_pos, armmax_pos = pos.max(0) RuntimeError: cannot perform reduction function max on tensor with no elements because the operation does not have an identity 刚开始以为是batch_size的问题,以为解决了,但是后续的Epoch还是会报错,到底是哪里的问题呢

IsenLwww avatar Mar 21 '24 17:03 IsenLwww

有时候可能会没有这个报错,有些不明白,望好心人解答

IsenLwww avatar Mar 24 '24 17:03 IsenLwww

发现positive_indices为0的时候会出问题

IsenLwww avatar Mar 28 '24 06:03 IsenLwww

在 losses.py 里 max_pos, armmax_pos = pos.max(0) RuntimeError: cannot perform reduction function max on tensor without the elements because the operation does not have an identity 刚开始以为是batch_size的问题,以为解决了,但是后续的Epoch还是会报错,到底是哪里的问题呢

你好,请问你解决这个问题了吗,我也遇到几乎一样的问题。。。

zlx913 avatar Jul 31 '24 07:07 zlx913