QijinYin/scGraph

An error occurred in scheduler.py

xu15825503775 opened this issue · 0 comments

Hello, I encountered an error while running:
Traceback (most recent call last):
File "C: Users Administrator Desktop scGraph master scGraph master version 2 scGraph. py", line 185, in
scheduler = CosineAnnealingWarmRestarts(optimizer,2, 2, eta_min=min_lr, lr_max_decay=0.5)
File "C: Users Administrator Desktop scGraph master scGraph master version 2 scheduler. py", line 37, in__ init__
super(CosineAnnealingWarmRestarts, self).__ init__ (optimizer, last_epoch)
File "D:\Anaconda3\envs\deepst\lib\site-packages\torch\optim\lr_scheduler.py", line 79, in __ init__
self._ initial_ step()
File "D:\Anaconda3\envs\deepst\lib\site-packages\torch\optim\lr_scheduler.py", line 85, in _ initial_ step
self.step()
File "C: Users Administrator Desktop scGraph master scGraph master version 2 scheduler. py", line 59, in step
self.T_ cur = self.T_ cur + 1
AttributeError: 'CosineAnnealingWarmRestarts' object has no attribute 'T_ cur'