This is from a Custom Keras Callback casted=K.cast((yPred), K.tf.int32)
I absolutely need to cast yPred, which is a Tensor, to the type int32 (The cast is applied to the Tensor content, I know that)
Still, K.cast allow only a conversion to float.
How can I solve the problem?
This is how you do it:
casted = K.cast(yPred,"int32")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With