Skip to content

Commit 65f4511

Browse files
committed
update
1 parent 08ab5ee commit 65f4511

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mftcoder_accelerate/src/utils/loss_utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def compute_per_task_weight(self, completed_steps=None):
310310

311311
return per_task_weight
312312

313-
def fit_window_slope(self, x, y, type='slope'):
313+
def fit_window_slope(self, x, y, type="slope"):
314314

315315
y = y[y != 0]
316316
x = x[:len(y)]
@@ -323,7 +323,7 @@ def fit_window_slope(self, x, y, type='slope'):
323323
ws = ws.double()
324324

325325
if len(y) >= 2:
326-
if type == 'slope':
326+
if type == "slope":
327327
X = torch.stack((x, torch.ones_like(x, dtype=torch.float64))).T
328328
X = X.double()
329329
else:

0 commit comments

Comments
 (0)