Skip to content
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: Only provide the shape OR batch_input_shape argument to Input, not both at the same time. #64

Open
mullerhai opened this issue Dec 9, 2020 · 4 comments

Comments

@mullerhai
Copy link

keras 2.4.3
tensorflow 2.3.1

when I want to run train.py ,get the error from here

error log
/Users/apple/opt/anaconda3/envs/mullerenv/bin/python /Users/apple/Documents/codezoom/keras-gcn/kegra/train.py
Loading cora dataset...
Dataset has 2708 nodes, 5429 edges, 1433 features.
Using Chebyshev polynomial basis filters...
Calculating largest eigenvalue of normalized graph Laplacian...
Calculating Chebyshev polynomials up to order 2...
Traceback (most recent call last):
File "/Users/apple/Documents/codezoom/keras-gcn/kegra/train.py", line 44, in
G = [Input(shape=(None, None), batch_shape=(None, None), sparse=True) for _ in range(support)]
File "/Users/apple/Documents/codezoom/keras-gcn/kegra/train.py", line 44, in
G = [Input(shape=(None, None), batch_shape=(None, None), sparse=True) for _ in range(support)]
File "/Users/apple/opt/anaconda3/envs/mullerenv/lib/python3.6/site-packages/tensorflow/python/keras/engine/input_layer.py", line 295, in Input
raise ValueError('Only provide the shape OR batch_input_shape argument '
ValueError: Only provide the shape OR batch_input_shape argument to Input, not both at the same time.

@rudanie89
Copy link

Hi mullerhai, I faced the same error. Did you manage to run it? If Yes, can you share with me, please? Many thanks!

@ratmcu
Copy link

ratmcu commented Apr 16, 2021

I created a pull request which fixed this issue. waiting for the review. #66

@keejoo
Copy link

keejoo commented May 18, 2022

I created a pull request which fixed this issue. waiting for the review. #66

Thanks for your help. It works fine with your code. However, even after using your code, when I change the FILTER in train.py from 'localpool' to 'chebyshev', The error below occurs again:

ValueError: Only provide the shape OR batch_input_shape argument to Input, not both at the same time.

How could I manage this error? When I google it, it says it's a problem of tensorflow version...
Thanks a lot!

@whaiwan
Copy link

whaiwan commented Apr 1, 2023

Is the problem solved now? Can you tell me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants