Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

一个RuntimeError #3

Open
raoxiaohan opened this issue Feb 20, 2024 · 5 comments
Open

一个RuntimeError #3

raoxiaohan opened this issue Feb 20, 2024 · 5 comments

Comments

@raoxiaohan
Copy link

感谢您的工作为我后续工作提供了思路,想请问一下这个报错是为什么呢:RuntimeError: max(): Expected reduction dim to be specified for input.numel() == 0. Specify the reduction dim with the 'dim' argument.您有遇到过这个情况吗?

@wei-ln
Copy link
Collaborator

wei-ln commented Feb 24, 2024

感谢您的关注。这个问题可能是由于池化操作中的perm_filter操作导致的(通过设计th过滤掉score值较小的node,进而池化后图中没有node的存在)

目前试过有两个比较稳定的解决方案:

  1. model_search.py#L107,将th设置为0
  2. 代码运行时使用该参数: --model_type darts

@mumu410
Copy link

mumu410 commented Mar 14, 2024

RuntimeError: min(): Expected reduction dim to be specified for input.numel() == 0. Specify the reduction dim with the 'dim' argument.
感谢您提供的代码,我想问一下,您后续训练有遇到过这个问题吗?是怎么解决的?

@mumu410
Copy link

mumu410 commented Mar 16, 2024

感谢您的工作为我后续工作提供了思路,想请问一下这个报错是为什么呢:RuntimeError: max(): Expected reduction dim to be specified for input.numel() == 0. Specify the reduction dim with the 'dim' argument.您有遇到过这个情况吗?

我想问一下您的问题解决了吗,可以请教一下嘛?

@wei-ln
Copy link
Collaborator

wei-ln commented Mar 17, 2024

RuntimeError: min(): Expected reduction dim to be specified for input.numel() == 0. Specify the reduction dim with the 'dim' argument.
感谢您提供的代码,我想问一下,您后续训练有遇到过这个问题吗?是怎么解决的?

感谢您的关注。看起来该error和此上述提问是同一个原因造成的。不知道上述提供的两个方案是否可以解决您的问题?或者您这边有其他反馈嘛?我好对应查看问题

@mumu410
Copy link

mumu410 commented Mar 23, 2024

您好关于RuntimeError: min(): Expected reduction dim to be specified for input.numel() == 0. Specify the reduction dim with the 'dim' argument这个问题,之前的两种方法没有解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants