Store `nvis` as attribute of AutoEncoder objects.