InvalidArgumentError: cannot compute Mul as input #1(zero-based) was expected to be a float tensor but is a double tensor

Error:

InvalidArgumentError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_22040/461364581.py in
9 print(X_train.dtype)
10 print(y_train.dtype)
—> 11 hybrid = model.fit(X_train,
12 y_train,
13 epochs = 100,

~\anaconda3\lib\site-packages\keras\utils\traceback_utils.py in error_handler(*args, **kwargs)
68 # To get the full stack trace, call:
69 # tf.debugging.disable_traceback_filtering()
—> 70 raise e.with_traceback(filtered_tb) from None
71 finally:
72 del filtered_tb

~\AppData\Roaming\Python\Python39\site-packages\tensorflow\python\framework\ops.py in raise_from_not_ok_status(e, name)
7213 def raise_from_not_ok_status(e, name):
7214 e.message += (" name: " + name if name is not None else “”)
→ 7215 raise core._status_to_exception(e) from None # pylint: disable=protected-access
7216
7217

InvalidArgumentError: cannot compute Mul as input #1(zero-based) was expected to be a float tensor but is a double tensor [Op:Mul]

Hi @VQX ,

Thanks for posting this question.

Since this question is duplicated in this other thread I will answer there :slightly_smiling_face:.