google-deepmind / google-deepmind/distrax

Material Missing at import: strange...

Open
#197 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
651
Forks
48
Avg merge
21h 4m
Merged PRs (30d)
3

Description

Hi,
I am on Google Colab and
```python
! pip install git+https://github.com/deepmind/distrax.git
from distrax import ScalarAffine, Tanh, DiagLinear, Shift
```
I get this error
```
ImportError: cannot import name 'DiagLinear' from 'distrax' (/usr/local/lib/python3.7/dist-packages/distrax/__init__.py)
```

But also strange
```python
from distrax._src.bijectors.diag_linear import DiagLinear
from distrax._src.bijectors.linear import Linear
```
The first import is ok, but the second complains
```
ModuleNotFoundError: No module named 'distrax._src.bijectors.linear'
```

something wrong in my install??? I check that the version is (0.1.2)

Thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.