-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError #4
Comments
Hello, I have the same problem here. It seems to be a side effect of Keras updates (perhaps about input_spec variable ?). Do you know how to solve this issue? EDIT : I forgot to mention the most important : I'm using TF: 2.7.0 and Keras: 2.7.0 . Except for some minor corrections, everything works well with TF: 1.15.2 and Keras: 2.3.1 . |
I have the same problem here.
Guess it's a direct call to the default keras Dense code? Just providing ideas, hope someone can answer, thank you very much. |
Hello,
thank you for providing your code!
I tried running the provided example (without changes) for the parkinson dataset and there seems to be an error. So the training is fine but wenn dasp = DASP(model) is executed, I get the following message:
ValueError: Layer dense_1 expects 1 input(s), but it received 3 input tensors. Inputs received: [<tf.Tensor 'Placeholder:0' shape=(None, 18) dtype=float32>, <tf.Tensor 'Placeholder_1:0' shape=(None, 18) dtype=float32>, <tf.Tensor 'Placeholder_2:0' shape=(None, 1) dtype=float32>]
The problem appears to be while executing the line:
first_layer_output = ProbDenseInput(l.units, activation=l.activation, name=l.name)(self.inputs)
from the dasp.py file. Do you know, what might be the problem? Thanks in advance!
The text was updated successfully, but these errors were encountered: