Solved by alber_mel in post #4 
              
              
                My Problem now is solved thank you very much @ptrblck  for your guidance  
It was solved by converting the right input to float: 
because I am working with sequential learning I had another input called x_module_task = x_module_task.float() adding this solved the problem, and I am able to pass the d…