WARNING:tensorflow:Functional inputs must come from tf.keras.Input (thus holding past layer metadata), they cannot be the output of a previous non-Input layer. Here, a tensor specified as input to “functional_5” was not an Input tensor, it was generated by layer repeat_vector_49.
Note that input tensors are instantiated via tensor = tf.keras.Input(shape).
The tensor that caused the issue was: repeat_vector_49/Tile:0
There appears to be an error in your music_inference_model() function.
It might be where you are using the RepeatVector() function.
Or it might be if you are using the wrong range for the ‘t’ variable in that for-loop.
I still got similar warning after replacing that line with x = tf.one_hot(x,depth=n_values):
WARNING:tensorflow:Functional inputs must come from tf.keras.Input (thus holding past layer metadata), they cannot be the output of a previous non-Input layer. Here, a tensor specified as input to “functional_16” was not an Input tensor, it was generated by layer repeat_vector_649.
Note that input tensors are instantiated via tensor = tf.keras.Input(shape).
The tensor that caused the issue was: repeat_vector_649/Tile:0
Also, something wrong with this line
—> 67 inference_model = Model(inputs=[x, a0, c0], outputs=outputs)
ValueError: Graph disconnected: cannot obtain value for tensor Tensor(“input_19:0”, shape=(None, 1, 90), dtype=float32) at layer “lstm”. The following previous layers were accessed without issue: