Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit65f4511

Browse files
committed
update
1 parent08ab5ee commit65f4511

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎mftcoder_accelerate/src/utils/loss_utils.py

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

311311
returnper_task_weight
312312

313-
deffit_window_slope(self,x,y,type='slope'):
313+
deffit_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
iflen(y)>=2:
326-
iftype=='slope':
326+
iftype=="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)

[8]ページ先頭

©2009-2025 Movatter.jp