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

I3InferenceModule doesn't recognize a list of length 1 #764

Open
pweigel opened this issue Nov 7, 2024 · 1 comment
Open

I3InferenceModule doesn't recognize a list of length 1 #764

pweigel opened this issue Nov 7, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@pweigel
Copy link
Collaborator

pweigel commented Nov 7, 2024

Describe the bug
Using I3InferenceModule with a single task in a list results in a lot of spam. It checks if it's a list but doesn't check the length. I can fix this with some other improvements I'm making to inference-related activities. I think it should also be a warning_once, otherwise, it would still spam when len(tasks)>1.

To Reproduce
Steps to reproduce the behavior:

  1. Run I3InferenceModule when the model config has a tasks list containing only one task.

Expected behavior
It should recognize that there is actually only one task.

Full traceback

graphnet [MainProcess] WARNING  2024-11-07 12:24:59 - I3InferenceModule.Execute - I3InferenceModule assumes one Task but got 1. Only the first will be used.
graphnet [MainProcess] WARNING  2024-11-07 12:24:59 - I3InferenceModule.Execute - I3InferenceModule assumes one Task but got 1. Only the first will be used.
graphnet [MainProcess] WARNING  2024-11-07 12:24:59 - I3InferenceModule.Execute - I3InferenceModule assumes one Task but got 1. Only the first will be used.
graphnet [MainProcess] WARNING  2024-11-07 12:24:59 - I3InferenceModule.Execute - I3InferenceModule assumes one Task but got 1. Only the first will be used.
graphnet [MainProcess] WARNING  2024-11-07 12:24:59 - I3InferenceModule.Execute - I3InferenceModule assumes one Task but got 1. Only the first will be used.
graphnet [MainProcess] WARNING  2024-11-07 12:24:59 - I3InferenceModule.Execute - I3InferenceModule assumes one Task but got 1. Only the first will be used.
graphnet [MainProcess] WARNING  2024-11-07 12:24:59 - I3InferenceModule.Execute - I3InferenceModule assumes one Task but got 1. Only the first will be used.
graphnet [MainProcess] WARNING  2024-11-07 12:24:59 - I3InferenceModule.Execute - I3InferenceModule assumes one Task but got 1. Only the first will be used.
graphnet [MainProcess] WARNING  2024-11-07 12:24:59 - I3InferenceModule.Execute - I3InferenceModule assumes one Task but got 1. Only the first will be used.
graphnet [MainProcess] WARNING  2024-11-07 12:24:59 - I3InferenceModule.Execute - I3InferenceModule assumes one Task but got 1. Only the first will be used.
graphnet [MainProcess] WARNING  2024-11-07 12:24:59 - I3InferenceModule.Execute - I3InferenceModule assumes one Task but got 1. Only the first will be used.
graphnet [MainProcess] WARNING  2024-11-07 12:24:59 - I3InferenceModule.Execute - I3InferenceModule assumes one Task but got 1. Only the first will be used.
graphnet [MainProcess] WARNING  2024-11-07 12:24:59 - I3InferenceModule.Execute - I3InferenceModule assumes one Task but got 1. Only the first will be used.
graphnet [MainProcess] WARNING  2024-11-07 12:24:59 - I3InferenceModule.Execute - I3InferenceModule assumes one Task but got 1. Only the first will be used.
graphnet [MainProcess] WARNING  2024-11-07 12:24:59 - I3InferenceModule.Execute - I3InferenceModule assumes one Task but got 1. Only the first will be used.
graphnet [MainProcess] WARNING  2024-11-07 12:24:59 - I3InferenceModule.Execute - I3InferenceModule assumes one Task but got 1. Only the first will be used.
graphnet [MainProcess] WARNING  2024-11-07 12:24:59 - I3InferenceModule.Execute - I3InferenceModule assumes one Task but got 1. Only the first will be used.
graphnet [MainProcess] WARNING  2024-11-07 12:24:59 - I3InferenceModule.Execute - I3InferenceModule assumes one Task but got 1. Only the first will be used.
graphnet [MainProcess] WARNING  2024-11-07 12:24:59 - I3InferenceModule.Execute - I3InferenceModule assumes one Task but got 1. Only the first will be used.
graphnet [MainProcess] WARNING  2024-11-07 12:24:59 - I3InferenceModule.Execute - I3InferenceModule assumes one Task but got 1. Only the first will be used.
graphnet [MainProcess] WARNING  2024-11-07 12:24:59 - I3InferenceModule.Execute - I3InferenceModule assumes one Task but got 1. Only the first will be used.
graphnet [MainProcess] WARNING  2024-11-07 12:24:59 - I3InferenceModule.Execute - I3InferenceModule assumes one Task but got 1. Only the first will be used.
graphnet [MainProcess] WARNING  2024-11-07 12:24:59 - I3InferenceModule.Execute - I3InferenceModule assumes one Task but got 1. Only the first will be used.
graphnet [MainProcess] WARNING  2024-11-07 12:24:59 - I3InferenceModule.Execute - I3InferenceModule assumes one Task but got 1. Only the first will be used.
graphnet [MainProcess] WARNING  2024-11-07 12:24:59 - I3InferenceModule.Execute - I3InferenceModule assumes one Task but got 1. Only the first will be used.
graphnet [MainProcess] WARNING  2024-11-07 12:24:59 - I3InferenceModule.Execute - I3InferenceModule assumes one Task but got 1. Only the first will be used.
graphnet [MainProcess] WARNING  2024-11-07 12:24:59 - I3InferenceModule.Execute - I3InferenceModule assumes one Task but got 1. Only the first will be used.
graphnet [MainProcess] WARNING  2024-11-07 12:24:59 - I3InferenceModule.Execute - I3InferenceModule assumes one Task but got 1. Only the first will be used.
graphnet [MainProcess] WARNING  2024-11-07 12:24:59 - I3InferenceModule.Execute - I3InferenceModule assumes one Task but got 1. Only the first will be used.
graphnet [MainProcess] WARNING  2024-11-07 12:24:59 - I3InferenceModule.Execute - I3InferenceModule assumes one Task but got 1. Only the first will be used.
graphnet [MainProcess] WARNING  2024-11-07 12:24:59 - I3InferenceModule.Execute - I3InferenceModule assumes one Task but got 1. Only the first will be used.
@pweigel pweigel added the bug Something isn't working label Nov 7, 2024
@pweigel pweigel self-assigned this Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
@pweigel and others