Skip to content

Commit

Permalink
Fix static import check
Browse files Browse the repository at this point in the history
  • Loading branch information
karm-patel committed Jul 21, 2022
1 parent b92deee commit e71bd1a
Show file tree
Hide file tree
Showing 2 changed files with 811 additions and 804 deletions.
9 changes: 7 additions & 2 deletions notebooks/book2/17/bnn_hierarchical.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,12 @@
"metadata": {},
"outputs": [],
"source": [
"import flax.linen as nn\n",
"try:\n",
" import flax.linen as nn\n",
"except ModuleNotFoundError:\n",
" %pip install -qq flax\n",
" import flax.linen as nn\n",
"\n",
"from jax.flatten_util import ravel_pytree"
]
},
Expand Down Expand Up @@ -1360,7 +1365,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
"version": "3.9.12"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit e71bd1a

Please sign in to comment.