Skip to content

Commit

Permalink
Merge pull request #93 from Heklis/master
Browse files Browse the repository at this point in the history
Update base_model.py
  • Loading branch information
BrikerMan committed May 21, 2019
2 parents 4dfab02 + 5ba1984 commit c6fb74c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kashgari/tasks/classification/base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ def get_data_generator(self,
target_x.append(x[start_index: end_index])
target_y = y_data[start_index: end_index]
if len(target_x[0]) == 0:
target_x.pop()
for x in x_data:
target_x.append(x[0: batch_size])
target_y = y_data[0: batch_size]
Expand Down

0 comments on commit c6fb74c

Please sign in to comment.