inp1 = keras.layers.Input(shape=(1,), name="inp1")
inp2 = keras.layers.Input(shape=(1,), name="inp2")
out = tf.experimental.numpy.add(inp1, inp2)
m = keras.Model([inp1, inp2], out)
Cannot interpret '<KerasTensor: shape=(None, 1) dtype=float32 (created by layer 'inp1')>' as a data type
相似问题