Traceback (most recent call last):


 "./winsdk_dump.py", line 89, in <module>

parse_winsdk(filename)


 "./winsdk_dump.py", line 42, in parse_winsdk

for func in winsdk[entry]:
# read function dict
TypeError: list indices must be integers or slices, not str

Epoch 0:
0%|
| 0/8 [00:00<?, ?it/s]Traceback (most recent call last):


 "finetune.py", line 490, in <module>

main(args)


 "finetune.py", line 465, in main

logger=logger,


 "/workspace/bart/lightning_base.py", line 374, in generic_train

trainer.fit(model)


 "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/trainer/trainer.py", line 302, in fit

results = self.accelerator_backend.train()


 "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/accelerators/ddp_backend.py", line 129, in train

results = self.ddp_train_tmp(process_idx=self.task_idx, mp_queue=None, model=model, is_master=True)


 "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/accelerators/ddp_base_backend.py", line 170, in ddp_train_tmp

results = self.train_or_test()


 "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/accelerators/base_backend.py", line 36, in train_or_test

results = self.trainer.train()


 "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/trainer/trainer.py", line 349, in train

self.train_loop.run_training_epoch()


 "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/trainer/training_loop.py", line 446, in run_training_epoch

batch_output = self.run_training_batch(batch, batch_idx, dataloader_idx)


 "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/trainer/training_loop.py", line 566, in run_training_batch

self.trainer.hiddens


 "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/trainer/training_loop.py", line 640, in training_step_and_backward

result = self.training_step(split_batch, batch_idx, opt_idx, hiddens)


 "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/trainer/training_loop.py", line 300, in training_step

training_step_output = self.trainer.call_hook('training_step_end', training_step_output)


 "/opt/conda/lib/python3.6/site-packages/pytorch_lightning/trainer/trainer.py", line 639, in call_hook

output = hook_fx(*args, **kwargs)


 "finetune.py", line 184, in training_step_end

aggregated_parts["loss"] = sum([i["loss"] for i in batch_parts])/len(batch_parts)


 "finetune.py", line 184, in <listcomp>

aggregated_parts["loss"] = sum([i["loss"] for i in batch_parts])/len(batch_parts)
TypeError: string indices must be integers
