Err: only integer scalar arrays can be converted to a scalar index! #183
|
I received an error message "only integer scalar arrays can be converted to a scalar index"(following picture) but not clear what it means. I tried to dubug on my local machine by establishing an environment like "Backend Files for Evaluation"(https://github.com/PaddlePaddle/PaddleSpatial/tree/main/apps/wpf_baseline_gru/kddcup22-sdwpf-evaluation) However another error occured: I'm confused that: Any help will be appreciated. Team CSU123, last submission: 2022-06-17 15:01 |
Replies: 1 comment
|
This is the traceback log: Traceback (most recent call last): |


This is the traceback log:
Traceback (most recent call last):
File "/home/aistudio/eval_prog/kddcup22-sdwpf-evaluation/paddlepaddle/evaluation.py", line 332, in eval
return evaluate(tmp_dir)
File "/home/aistudio/eval_prog/kddcup22-sdwpf-evaluation/paddlepaddle/evaluation.py", line 233, in evaluate
pred_res = predict_and_test(envs, PRED_DIR, forecast_module, i, flag='predict')
File "/home/aistudio/eval_prog/kddcup22-sdwpf-evaluation/paddlepaddle/evaluation.py", line 168, in predict_and_test
return exec_predict_and_test(envs, path_to_test_file, forecast_module, flag)
File "/home/aistudio/eval_prog/kddcup22-sdwpf-evaluation/paddlepaddle/evaluation.py", line 131, in exec_predict_and_test
"pre…