Sign in
android
/
platform
/
external
/
pytorch
/
05b679ce6a
/
.
/
test
/
dynamo
/
mock_modules
/
mock_module2.py
blob: 7fe8979709c350a81a5ded61b5df11f94fa648c9 [
file
] [
log
] [
blame
]
# from . import mock_module3
import
torch
from
.
import
mock_module3
class
Class1
:
def
__init__
(
self
,
x
,
y
):
self
.
x
=
x
self
.
y
=
y
def
method2
(
self
,
x
):
return
mock_module3
.
method1
([],
x
)
def
method1
(
x
,
y
):
torch
.
ones
(
1
,
1
)
x
.
append
(
y
)
return
x