Skip to content

Commit

Permalink
修复bug
Browse files Browse the repository at this point in the history
  • Loading branch information
win10-pc committed Sep 10, 2020
1 parent 8fbb4c8 commit b54fcdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spikingjelly/datasets/dvs_gesture.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def cvt_files_fun(aedat_file_list):
block = aedat_files.__len__() // 8 # 分成8个子任务
thread_list = []
for i in range(7):
thread_list.append(spikingjelly.datasets.FunctionThread(cvt_files_fun, aedat_files[i * block, (i + 1) * block]))
thread_list.append(spikingjelly.datasets.FunctionThread(cvt_files_fun, aedat_files[i * block: (i + 1) * block]))
print('thread {i} start')
thread_list[-1].start()
# 最后一段任务由主线程完成
Expand Down

0 comments on commit b54fcdf

Please sign in to comment.