Closed p-deol closed 3 years ago
@p-deol This question is better asked on StackOverflow since it is not a bug or feature request. There is also a larger community that reads questions there. please move this to close status once issue is created on SO.
Thank you. I received a response from Andrey on StackOverflow that solved my issue. Response was as follows:
Input_dim argument of the first Dense layer is 7. It means that your model expecting the last dimension of your data is 7. But you are feeding (152, 7, 169), where 169 is the last dimension.
Try to transpose it:
X = tf.transpose(X, [0, 2, 1])
Hello,
I would like to apologize if this is posted in the wrong location. If that is the case, any guidance as to where I can ask this question would be greatly appreciated. I am new to coding and GitHub, but have found many answers to posts on this forum very helpful to me. I am trying to setup a code to utilize the Keras model for deep learning with a 3d dataset, and am uncertain how to deal with the error I'm receiving (in the title). I have found a similar error reported on this forum, but the response was that it would be fixed in TensorFlow v 2.1. I am using v2.4.0, so I expect I'm probably doing something wrong here. The code I am using is as follows:
Information on the variables as follows: X is an array of float64, with size (152,7,169) Y is an array of int32, with size (152,)
Information on versions as follows: Python version 3.8.5 Keras version 2.4.3 TensorFlow version 2.4.0 Windows 10 Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz 1.90 GHz (AVX capable) Spyder version 4.2.0
The full error I am getting is as follows:
The above error is what I receive every time I run this code. I just restarted the software and ran it again, and in addition to the above error, I received the following error immediately below:
I'm not sure if this is related, or a completely separate issue. Any information or guidance you can provide would be greatly appreciated.