mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2026-05-28 02:38:53 +08:00
Suppress type errors for Pyre upgrade
Summary: This diff was automatically generated by the Pyre per-target upgrade tool. It adds `# pyre-fixme` or `pyrefly: ignore` comments to suppress type errors that will be introduced by an upcoming Pyre or Pyrefly release. These suppressions allow the upgrade to proceed without breaking existing code. Pyrefly Upgrade - f-string fix #pyreupgrade Differential Revision: D105268300 fbshipit-source-id: 2f19758e20755944509fe14fc256002c652052a5
This commit is contained in:
committed by
meta-codesync[bot]
parent
b6a77ad7aa
commit
c307c64c70
@@ -169,6 +169,7 @@ class ImplicitronOptimizerFactory(OptimizerFactoryBase):
|
||||
gamma=self.gamma,
|
||||
)
|
||||
elif self.lr_policy.casefold() == "Exponential".casefold():
|
||||
# pyre-fixme[28]: Unexpected keyword argument `verbose`.
|
||||
scheduler = torch.optim.lr_scheduler.LambdaLR(
|
||||
optimizer,
|
||||
lambda epoch: self.gamma ** (epoch / self.exponential_lr_step_size),
|
||||
@@ -188,6 +189,7 @@ class ImplicitronOptimizerFactory(OptimizerFactoryBase):
|
||||
gamma = self.gamma ** (epoch_rest / self.exponential_lr_step_size)
|
||||
return gamma
|
||||
|
||||
# pyre-fixme[28]: Unexpected keyword argument `verbose`.
|
||||
scheduler = torch.optim.lr_scheduler.LambdaLR(
|
||||
optimizer, _get_lr, verbose=False
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user