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

This commit is contained in:
Tom Aarsen 2022-10-27 13:36:39 +02:00
parent 54bd6ed1d6
commit 7727fa4c8c
4 changed files with 14 additions and 14 deletions

View File

@ -25,7 +25,7 @@ class LARS(Optimizer1State):
):
if momentum == 0:
raise NotImplementedError(
f"LARS without momentum is not supported!"
"LARS without momentum is not supported!"
)
super().__init__(
"lars",
@ -59,7 +59,7 @@ class LARS8bit(Optimizer1State):
):
if momentum == 0:
raise NotImplementedError(
f"LARS without momentum is not supported!"
"LARS without momentum is not supported!"
)
super().__init__(
"lars",
@ -93,7 +93,7 @@ class LARS32bit(Optimizer1State):
):
if momentum == 0:
raise NotImplementedError(
f"LARS without momentum is not supported!"
"LARS without momentum is not supported!"
)
super().__init__(
"lars",

View File

@ -282,11 +282,11 @@ class Optimizer8bit(torch.optim.Optimizer):
return config
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):
raise NotImplementedError(
f"The update_step method needs to be overidden"
"The update_step method needs to be overidden"
)

View File

@ -23,10 +23,10 @@ class RMSprop(Optimizer1State):
):
if alpha == 0:
raise NotImplementedError(
f"RMSprop with alpha==0.0 is not supported!"
"RMSprop with alpha==0.0 is not supported!"
)
if centered:
raise NotImplementedError(f"Centered RMSprop is not supported!")
raise NotImplementedError("Centered RMSprop is not supported!")
super().__init__(
"rmsprop",
params,
@ -59,10 +59,10 @@ class RMSprop8bit(Optimizer1State):
):
if alpha == 0:
raise NotImplementedError(
f"RMSprop with alpha==0.0 is not supported!"
"RMSprop with alpha==0.0 is not supported!"
)
if centered:
raise NotImplementedError(f"Centered RMSprop is not supported!")
raise NotImplementedError("Centered RMSprop is not supported!")
super().__init__(
"rmsprop",
params,
@ -96,10 +96,10 @@ class RMSprop32bit(Optimizer1State):
if alpha == 0:
raise NotImplementedError(
f"RMSprop with alpha==0.0 is not supported!"
"RMSprop with alpha==0.0 is not supported!"
)
if centered:
raise NotImplementedError(f"Centered RMSprop is not supported!")
raise NotImplementedError("Centered RMSprop is not supported!")
super().__init__(
"rmsprop",
params,

View File

@ -21,7 +21,7 @@ class SGD(Optimizer1State):
block_wise=True,
):
if momentum == 0:
raise NotImplementedError(f"SGD without momentum is not supported!")
raise NotImplementedError("SGD without momentum is not supported!")
super().__init__(
"momentum",
params,
@ -52,7 +52,7 @@ class SGD8bit(Optimizer1State):
block_wise=True,
):
if momentum == 0:
raise NotImplementedError(f"SGD without momentum is not supported!")
raise NotImplementedError("SGD without momentum is not supported!")
super().__init__(
"momentum",
params,
@ -83,7 +83,7 @@ class SGD32bit(Optimizer1State):
block_wise=True,
):
if momentum == 0:
raise NotImplementedError(f"SGD without momentum is not supported!")
raise NotImplementedError("SGD without momentum is not supported!")
super().__init__(
"momentum",
params,