Solved by notreadyyet in post #3 
              
              
                For anyone interested, explicit casting of reward, returned by environment’s step function, to float32, allowed dqn.update function to succeed.