rbmdnn forward