less memory when training RBMs