some API work on RestrictedBoltzmannMachine