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. Upgrading to new pyrefly Version. Without landing this diff your type checking tests may break. If assigned as a reviewer please help us get these diffs across the finish line. Thank you! #pyreupgrade Differential Revision: D113834959 fbshipit-source-id: 63169c3df9d594b58d39a33ab51c8866629dd1fa
This commit is contained in:
committed by
meta-codesync[bot]
parent
46957e4780
commit
6dbb02bd38
@@ -153,9 +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`.
|
||||
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`.
|
||||
checkpoint_path: str = None,
|
||||
) -> float:
|
||||
torch.autocast(device_type="cuda", dtype=torch.bfloat16).__enter__()
|
||||
@@ -183,8 +185,14 @@ 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`.
|
||||
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