Commit 7727fa4c authored by Tom Aarsen's avatar Tom Aarsen
Browse files

Remove f-prefix from strings that don't use formatting

parent 54bd6ed1
...@@ -25,7 +25,7 @@ class LARS(Optimizer1State): ...@@ -25,7 +25,7 @@ class LARS(Optimizer1State):
): ):
if momentum == 0: if momentum == 0:
raise NotImplementedError( raise NotImplementedError(
f"LARS without momentum is not supported!" "LARS without momentum is not supported!"
) )
super().__init__( super().__init__(
"lars", "lars",
...@@ -59,7 +59,7 @@ class LARS8bit(Optimizer1State): ...@@ -59,7 +59,7 @@ class LARS8bit(Optimizer1State):
): ):
if momentum == 0: if momentum == 0:
raise NotImplementedError( raise NotImplementedError(
f"LARS without momentum is not supported!" "LARS without momentum is not supported!"
) )
super().__init__( super().__init__(
"lars", "lars",
...@@ -93,7 +93,7 @@ class LARS32bit(Optimizer1State): ...@@ -93,7 +93,7 @@ class LARS32bit(Optimizer1State):
): ):
if momentum == 0: if momentum == 0:
raise NotImplementedError( raise NotImplementedError(
f"LARS without momentum is not supported!" "LARS without momentum is not supported!"
) )
super().__init__( super().__init__(
"lars", "lars",
......
...@@ -282,11 +282,11 @@ class Optimizer8bit(torch.optim.Optimizer): ...@@ -282,11 +282,11 @@ class Optimizer8bit(torch.optim.Optimizer):
return config return config
def init_state(self, group, p, gindex, pindex): def init_state(self, group, p, gindex, pindex):
raise NotImplementedError(f"init_state method needs to be overidden") raise NotImplementedError("init_state method needs to be overidden")
def update_step(self, group, p, gindex, pindex): def update_step(self, group, p, gindex, pindex):
raise NotImplementedError( raise NotImplementedError(
f"The update_step method needs to be overidden" "The update_step method needs to be overidden"
) )
......
...@@ -23,10 +23,10 @@ class RMSprop(Optimizer1State): ...@@ -23,10 +23,10 @@ class RMSprop(Optimizer1State):
): ):
if alpha == 0: if alpha == 0:
raise NotImplementedError( raise NotImplementedError(
f"RMSprop with alpha==0.0 is not supported!" "RMSprop with alpha==0.0 is not supported!"
) )
if centered: if centered:
raise NotImplementedError(f"Centered RMSprop is not supported!") raise NotImplementedError("Centered RMSprop is not supported!")
super().__init__( super().__init__(
"rmsprop", "rmsprop",
params, params,
...@@ -59,10 +59,10 @@ class RMSprop8bit(Optimizer1State): ...@@ -59,10 +59,10 @@ class RMSprop8bit(Optimizer1State):
): ):
if alpha == 0: if alpha == 0:
raise NotImplementedError( raise NotImplementedError(
f"RMSprop with alpha==0.0 is not supported!" "RMSprop with alpha==0.0 is not supported!"
) )
if centered: if centered:
raise NotImplementedError(f"Centered RMSprop is not supported!") raise NotImplementedError("Centered RMSprop is not supported!")
super().__init__( super().__init__(
"rmsprop", "rmsprop",
params, params,
...@@ -96,10 +96,10 @@ class RMSprop32bit(Optimizer1State): ...@@ -96,10 +96,10 @@ class RMSprop32bit(Optimizer1State):
if alpha == 0: if alpha == 0:
raise NotImplementedError( raise NotImplementedError(
f"RMSprop with alpha==0.0 is not supported!" "RMSprop with alpha==0.0 is not supported!"
) )
if centered: if centered:
raise NotImplementedError(f"Centered RMSprop is not supported!") raise NotImplementedError("Centered RMSprop is not supported!")
super().__init__( super().__init__(
"rmsprop", "rmsprop",
params, params,
......
...@@ -21,7 +21,7 @@ class SGD(Optimizer1State): ...@@ -21,7 +21,7 @@ class SGD(Optimizer1State):
block_wise=True, block_wise=True,
): ):
if momentum == 0: if momentum == 0:
raise NotImplementedError(f"SGD without momentum is not supported!") raise NotImplementedError("SGD without momentum is not supported!")
super().__init__( super().__init__(
"momentum", "momentum",
params, params,
...@@ -52,7 +52,7 @@ class SGD8bit(Optimizer1State): ...@@ -52,7 +52,7 @@ class SGD8bit(Optimizer1State):
block_wise=True, block_wise=True,
): ):
if momentum == 0: if momentum == 0:
raise NotImplementedError(f"SGD without momentum is not supported!") raise NotImplementedError("SGD without momentum is not supported!")
super().__init__( super().__init__(
"momentum", "momentum",
params, params,
...@@ -83,7 +83,7 @@ class SGD32bit(Optimizer1State): ...@@ -83,7 +83,7 @@ class SGD32bit(Optimizer1State):
block_wise=True, block_wise=True,
): ):
if momentum == 0: if momentum == 0:
raise NotImplementedError(f"SGD without momentum is not supported!") raise NotImplementedError("SGD without momentum is not supported!")
super().__init__( super().__init__(
"momentum", "momentum",
params, params,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment