Made my way through this assignment. It seemed pretty self explanatory until I had finished it and realized they were a few things imported that I had not used and I am a bit unsure if I am using t, the iterable value from the for loop, correctly. First off, I did not use Lambda. I have a hunch it is my issue with the djmodel function. For step 2.a i had this:
Step 2.A: select the "t"th time step vector from X.
x = X[t]
I am getting this error:
AttributeError: The layer "lstm" has multiple inbound nodes, with different output shapes. Hence the notion of "output shape" is ill-defined for the layer. Use `get_output_shape_at(node_index)` instead.
considering LTSM takes the output from selecting the t’th time step vector from X and get_output_shape_at is not imported with tensorflow.keras.layers.
For the second function, music_inference_model, i am a bit unsure of my code for the ony_hot lines. This is where i am unsure about the iterable value t:
x = tf.math.argmax(out, axis=-1)
x = tf.one_hot((x), t)
I am getting errors there and i cant find out of my third function is working correctly. I am half posting this to write down where my issues down so I can hopefully see where my silly mistakes are, but also if any else gets stuck with this, it can be documented somewhere. Please help if you have any advice that will help. I am very very new to the deep learning side of ML, and really pretty new to ML in general. I remember we used tensorflow at a previous job back in 2016, but i was too ignorant to learn anything about it cuz it was pretty new technology then, but it being very heavily used for map creation and object detection.