mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2026-07-30 04:26:10 +08:00
Enable Pyrefly in fbcode/vision/fair/pytorch3d
Summary: Automated migration to enable Pyrefly type checking for `fbcode/vision/fair/pytorch3d`. - 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: D113596106 fbshipit-source-id: a4caffc6c5622ea030fe296c3a64e45fa803f77e
This commit is contained in:
committed by
meta-codesync[bot]
parent
4daa00b41c
commit
32a33e2442
@@ -199,6 +199,7 @@ class ImplicitronTrainingLoop(TrainingLoopBase):
|
||||
and self.test_interval > 0
|
||||
and epoch % self.test_interval == 0
|
||||
):
|
||||
# pyrefly: ignore [missing-attribute]
|
||||
self.evaluator.run(
|
||||
device=device,
|
||||
dataloader=test_loader,
|
||||
@@ -215,6 +216,7 @@ class ImplicitronTrainingLoop(TrainingLoopBase):
|
||||
|
||||
if self.test_when_finished:
|
||||
if test_loader is not None:
|
||||
# pyrefly: ignore [missing-attribute]
|
||||
self.evaluator.run(
|
||||
device=device,
|
||||
dump_to_json=True,
|
||||
|
||||
Reference in New Issue
Block a user