I3InferenceModule doesn't recognize a list of length 1

Đang mở
#764 0 bình luận 1 reaction 1 người được giao Xem trên GitHub

@pweigel đang làm issue này rồi.

Từ ngày 7/11/2024.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

bug

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.
Ngôn ngữ chính
Python
Star
117
Fork
115
Merge trung bình
2 ngày 21 giờ
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của graphnet-team/graphnet

Tất cả issue của graphnet-team/graphnet

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.