Following the tutorial of Turning quantum nodes into Keras Layers. I changed the compile method to the following:
model.compile(opt, loss="mae", metrics=["accuracy", tf.keras.metrics.AUC()])
This gave the following error:
InvalidArgumentError: cannot compute Mul as input #1(zero-based) was expected to be a double tensor but is a float tensor [Op:Mul]
I am using tf.keras.backend.set_floatx('float64')
. Any help on this is appreciated.
Thank you.