Skip to content

Commit a625531

Browse files
Merge pull request yandexdataschool#58 from NickVeld/patch-14
week8:autoencoders_torch let use acceptable Modules consisting of som…
2 parents 16454e9 + 4a7afda commit a625531

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

week08_autoencoders/autoencoders_torch.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@
531531
" assert encoder_out.shape[1:]==torch.Size([code_size]),\"encoder must output a code of required size\"\n",
532532
" assert decoder_out.shape[1:]==img_shape, \"decoder must output an image of valid shape\"\n",
533533
"\n",
534-
" assert (len(list(model.dec.children())) >= 6), \"decoder must contain at least 3 dense layers\"\n",
534+
" assert (sum([1 + len(list(c1level.children())) for c1level in model.dec.children()]) >= 6), \"decoder must contain at least 3 dense layers\"\n",
535535
"\n",
536536
" del encoder_out\n",
537537
" del decoder_out\n",

0 commit comments

Comments
 (0)