ven if I cast the loss to a dtype= tf.int64, i get this error.
“”“TypeError: Cannot convert 1.0 to EagerTensor of dtype int64"”"
This is the last print block i get:
New Line
pos tf.Tensor(0.0, shape=(), dtype=float32)
neg tf.Tensor(2.0, shape=(), dtype=float32)
loss tf.Tensor(1, shape=(), dtype=int64)
my loss is showing it is an int of 1. Why is it throwing an error that it is a float64 1.0?