tf2.0 ,我把训练数据扔到tf.keras.Sequential中,结果报如下错误:
ValueError: Incompatible type conversion requested to type ‘uint8’ for variable of type ‘float32’
这里把训练数据x_train先转换为tf.float32类型,再送入网络中即可.
tf2.0 ,我把训练数据扔到tf.keras.Sequential中,结果报如下错误:
ValueError: Incompatible type conversion requested to type ‘uint8’ for variable of type ‘float32’
这里把训练数据x_train先转换为tf.float32类型,再送入网络中即可.