wala / ML

Eclipse Public License 2.0
23 stars 17 forks source link

Importing a module on the PYTHONPATH doesn't work #177

Closed khatchad closed 2 months ago

khatchad commented 3 months ago

The following works:

from tensorflow import ones
from C.B import f

f(ones([1, 2]))

The following doesn't work:

from tensorflow import ones
import C.B

C.B.f(ones([1, 2]))

Specifically, we try to lookup B from C.__init__.py, but it doesn't exist.