Skip to content

Commit

Permalink
fixed typo: separate
Browse files Browse the repository at this point in the history
  • Loading branch information
南川 committed Nov 6, 2023
1 parent 4c1e86e commit 48213b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea/*
.vscode/*

# Local History for Visual Studio Code
Expand Down
4 changes: 2 additions & 2 deletions finetune/utils/data/data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ def __init__(self, max_size, small_batch_size):
self.max_size = max_size
self.small_batch_size = small_batch_size

def seperate(self):
def separate(self):
small_dataset = []
for large_batch in self.dataset:
if type(large_batch) == list or type(large_batch) == tuple:
Expand Down Expand Up @@ -483,7 +483,7 @@ def add(self, data):
if len(self.dataset) < self.max_size:
self.dataset.append(data)
if len(self.dataset) == self.max_size:
return self.seperate()
return self.separate()
else:
return None
else:
Expand Down

0 comments on commit 48213b8

Please sign in to comment.