finish multithreaded deep rbm