mirror of
https://github.com/fastai/fastbook.git
synced 2025-04-05 18:30:44 +00:00
bugfix to 15_arch_details.ipynb create_body call
I run this notebook in Google colab and got an error when using simply the model name as the input to `create_body` function. Since children can be called from the function form, I added the parentheses in the notebook, so `encoder = create_body(resnet34, cut=-2)` became `encoder = create_body(resnet34(), cut=-2)` and the notebook runs fine.
This commit is contained in:
parent
823b69e00a
commit
cc022686c2
@ -343,7 +343,7 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"encoder = create_body(resnet34, cut=-2)"
|
"encoder = create_body(resnet34(), cut=-2)"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user