diff --git a/.pyre_configuration b/.pyre_configuration index 8867cd39d..972e4c52d 100644 --- a/.pyre_configuration +++ b/.pyre_configuration @@ -18,5 +18,5 @@ "stubs" ], "strict": true, - "version": "0.0.101709640814" + "version": "0.0.101721906040" } diff --git a/torchx/examples/apps/tracker/main.py b/torchx/examples/apps/tracker/main.py index 86e160786..c9231730e 100644 --- a/torchx/examples/apps/tracker/main.py +++ b/torchx/examples/apps/tracker/main.py @@ -99,6 +99,8 @@ def test( for data, target in test_loader: data, target = data.to(device), target.to(device) output = model(data) + # pyre-fixme[58]: `+` is not supported for operand types `int` and + # `Union[bool, float, int]`. test_loss += F.nll_loss( output, target, reduction="sum" ).item() # sum up batch loss diff --git a/torchx/pipelines/kfp/adapter.py b/torchx/pipelines/kfp/adapter.py index 513c7b698..427f25f44 100644 --- a/torchx/pipelines/kfp/adapter.py +++ b/torchx/pipelines/kfp/adapter.py @@ -50,7 +50,9 @@ def component_spec_from_app(app: api.AppDef) -> Tuple[str, api.Role]: role = app.roles[0] assert ( - role.num_replicas == 1 + role.num_replicas + == 1 + # pyre-fixme[16]: `AppDef` has no attribute `num_replicas`. ), f"KFP adapter only supports one replica, got {app.num_replicas}" command = [role.entrypoint, *role.args] diff --git a/torchx/schedulers/aws_batch_scheduler.py b/torchx/schedulers/aws_batch_scheduler.py index a354c57bc..9577e90fb 100644 --- a/torchx/schedulers/aws_batch_scheduler.py +++ b/torchx/schedulers/aws_batch_scheduler.py @@ -809,6 +809,8 @@ def _stream_events( startFromHead=True, **args, ) + # pyre-fixme[66]: Exception handler type annotation `unknown` must + # extend BaseException. except self._log_client.exceptions.ResourceNotFoundException: return [] # noqa: B901 if response["nextForwardToken"] == next_token: