mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2026-06-17 12:38:53 +08:00
Enable Pyrefly in fbcode/vision/fair
Summary: Automated migration to enable Pyrefly type checking for `fbcode/vision/fair`. - Added `python.set_pyrefly(True)` to PACKAGE file - Suppressed pre-existing type errors Pyrefly is Meta's next-generation Python type checker, replacing Pyre. If you encounter issues, you can revert the PACKAGE change by removing the `python.set_pyrefly(True)` line. #pyreupgrade Differential Revision: D107142434 fbshipit-source-id: 25929bb3d5a310d00dab11a46c5395df94357feb
This commit is contained in:
committed by
meta-codesync[bot]
parent
b73d735ecf
commit
05025bf005
@@ -193,6 +193,7 @@ class Experiment(Configurable):
|
||||
last_epoch=start_epoch,
|
||||
model=model,
|
||||
resume=self.model_factory.resume,
|
||||
# pyrefly: ignore [missing-attribute]
|
||||
resume_epoch=self.model_factory.resume_epoch,
|
||||
)
|
||||
|
||||
@@ -212,6 +213,7 @@ class Experiment(Configurable):
|
||||
|
||||
# Enter the main training loop.
|
||||
self.training_loop.run(
|
||||
# pyrefly: ignore [bad-argument-type]
|
||||
train_loader=train_loader,
|
||||
val_loader=val_loader,
|
||||
test_loader=test_loader,
|
||||
|
||||
Reference in New Issue
Block a user