Try to fix the NaN and Inf problem on the simulate branch.
Try to fix the NaN and Inf problem on branch simulate, need test.
NaN and Inf Problem still remains.
Fix write mistake.
Fix little issue.
Try to use gpu memory cache to improve performance.
Fix cache save issue.
Have fix the NaN problem of simulate multiple GPU RBM.
Merge branch 'fixissue' into simulate

Conflicts:
	calRBMGradient.m
	rbm_train.m