Skip to content

Commit

Permalink
Update scheduler.py (#40)
Browse files Browse the repository at this point in the history
An exception is made where steps are if float
  • Loading branch information
hanochk authored Jul 29, 2020
1 parent 7fb8fbf commit 0ecbb63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dropblock/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def __init__(self, dropblock, start_value, stop_value, nr_steps):
super(LinearScheduler, self).__init__()
self.dropblock = dropblock
self.i = 0
self.drop_values = np.linspace(start=start_value, stop=stop_value, num=nr_steps)
self.drop_values = np.linspace(start=start_value, stop=stop_value, num=int(nr_steps))

def forward(self, x):
return self.dropblock(x)
Expand Down

0 comments on commit 0ecbb63

Please sign in to comment.