further reduced the execution time of the autoencoders notebook

for #2514 and #2481