Enable Pyrefly for deeplearning/projects
Summary: Enables Pyrefly for `deeplearning/projects` by setting `python.set_pyrefly(True)` in the subdirectory PACKAGE file and adding targeted `# pyrefly: ignore` annotations. Part of splitting D113608658 into a per-subdirectory stack; the final diff performs the directory-level flip. #buildall Reviewed By: shugurov Differential Revision: D113962590 fbshipit-source-id: 2c69a82e5f862fa2fcdfbecba9668814df931026
This commit is contained in:
committed by
meta-codesync[bot]
parent
6dbb02bd38
commit
96914d2425
@@ -153,11 +153,11 @@ def run_test(
|
||||
height: int,
|
||||
n_frames: int,
|
||||
synthesize_data: bool = True,
|
||||
# pyre-fixme[9]: profile_save_dir has type `str`; used as `None`.
|
||||
# pyrefly: ignore [bad-function-definition]
|
||||
profile_save_dir: str = None,
|
||||
profile_end_frame: int = -1,
|
||||
do_compile: bool = True,
|
||||
# pyre-fixme[9]: checkpoint_path has type `str`; used as `None`.
|
||||
# pyrefly: ignore [bad-function-definition]
|
||||
checkpoint_path: str = None,
|
||||
) -> float:
|
||||
torch.autocast(device_type="cuda", dtype=torch.bfloat16).__enter__()
|
||||
@@ -185,14 +185,9 @@ def run_test(
|
||||
build_kwargs["checkpoint_path"] = checkpoint_path
|
||||
if version == "sam3.1":
|
||||
build_kwargs["warm_up"] = do_compile
|
||||
# pyre-fixme[6]: For 2nd argument expected `Union[bool, str]` but got `int`.
|
||||
# pyrefly: ignore [bad-assignment]
|
||||
build_kwargs["max_num_objects"] = num_objects
|
||||
|
||||
# pyre-fixme[6]: For 1st argument expected `Optional[str]` but got `Union[bool,
|
||||
# str]`.
|
||||
# pyre-fixme[6]: For 1st argument expected `bool` but got `Union[bool, str]`.
|
||||
# pyre-fixme[6]: For 1st argument expected `int` but got `Union[bool, str]`.
|
||||
# pyre-fixme[6]: For 1st argument expected `str` but got `Union[bool, str]`.
|
||||
model_wrapper = build_sam3_predictor(**build_kwargs)
|
||||
|
||||
# Initialize session
|
||||
|
||||
Reference in New Issue
Block a user