keraspp icon indicating copy to clipboard operation
keraspp copied to clipboard

ex9_3_advanced_keras.py 에서 발생하는 ValueError

Open inyong37 opened this issue 5 years ago • 0 comments

Backend_for_Lambda()yp = m.predict_on_batch([[1, 2, 3], [3, 4, 8]]) 부분에서 다음과 같은 에러가 발생하고 있습니다.

ValueError: Error when checking model input: the list of Numpy arrays that you are passing to your model is not the size the model expected. Expected to see 1 array(s), but instead got the following list of 2 arrays: [array([[1],
       [2],
       [3]]), array([[3],
       [4],
       [8]])]...

https://keras.io/ko/models/sequential/의 predict_on_batch를 참고해 보았지만, 어떻게 해결하면 좋을지 문의하고자 이슈 남깁니다.

inyong37 avatar Jul 08 '20 14:07 inyong37