Error in Hybrid quantum-classical auto encoder code

Now i am getting error while runing the model training part
looking forward to your support
thanks!

Hi @sy1234, welcome to the forum!

This looks like a float type problem.

The current demo has this line:
keras.backend.set_floatx('float32')

Make sure to change it to:
keras.backend.set_floatx('float64')

Please let me know if this solves your problem!

thanks!
i have sloved this problem!

I’m glad this solved your problem!