Skip to content

Commit

Permalink
Remove default typing argument in PACKAGE file] [batch:81/346] [shard…
Browse files Browse the repository at this point in the history
…:2/N]

Reviewed By: MaggieMoss

Differential Revision: D65066556

fbshipit-source-id: 5eb03b8073f0c27782f1a436deca88fa5b30a69f
  • Loading branch information
generatedunixname89002005307016 authored and facebook-github-bot committed Oct 28, 2024
1 parent 46989d8 commit fa01f56
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions multipy/runtime/example/fx/examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
try:
from .some_dependency import a_non_torch_leaf
except ImportError:
# pyre-fixme[21]: Could not find module `some_dependency`.
from some_dependency import a_non_torch_leaf


Expand Down
4 changes: 4 additions & 0 deletions multipy/runtime/example/generate_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
Simple,
)
except ImportError:
# pyre-fixme[21]: Could not find module `examples`.
from examples import (
BatchedModel,
load_library,
Expand All @@ -36,11 +37,13 @@
try:
from .fx.examples import SimpleWithLeaf
except ImportError:
# pyre-fixme[21]: Could not find module `fx.examples`.
from fx.examples import SimpleWithLeaf

try:
from .tensorrt_example import make_trt_module
except ImportError:
# pyre-fixme[21]: Could not find module `tensorrt_example`.
from tensorrt_example import make_trt_module


Expand Down Expand Up @@ -92,6 +95,7 @@ def main() -> None:
global p
args = parser.parse_args()
if args.install_dir is None:
# pyre-fixme[10]: Name `p` is used but not defined.
p = Path(__file__).parent / "generated"
p.mkdir(exist_ok=True)
else:
Expand Down
1 change: 1 addition & 0 deletions multipy/runtime/testdev/test_deploy_from_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import unittest

# pyre-fixme[21]: Could not find module `test_deploy_python_ext`.
# @manual=//multipy/runtime:test_deploy_python_ext
import test_deploy_python_ext

Expand Down
3 changes: 3 additions & 0 deletions multipy/runtime/unity/tests/simple_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
# LICENSE file in the root directory of this source tree.

import torch

# pyre-fixme[21]: Could not find name `nn` in `torch`.
from torch import nn


# pyre-fixme[11]: Annotation `Module` is not defined as a type.
class SimpleModel(nn.Module):
def __init__(self):
super(SimpleModel, self).__init__()
Expand Down

0 comments on commit fa01f56

Please sign in to comment.