Update datanway.py#5
Open
SNBQT wants to merge 1 commit into
Open
Conversation
fix below ValueError:
match_cosine_1 (MatchCosine) (None, 5) 0 flatten_1[0][0]
flatten_1[1][0]
flatten_1[2][0]
flatten_1[3][0]
flatten_1[4][0]
flatten_1[5][0]
input_2[0][0]
==================================================================================================
Total params: 112,448
Trainable params: 111,936
Non-trainable params: 512
__________________________________________________________________________________________________
Traceback (most recent call last):
File "matchingnetwork.py", line 71, in <module>
epochs=10,batch_size=32,verbose=1)
File "/usr/local/lib/python3.5/dist-packages/keras/engine/training.py", line 952, in fit
batch_size=batch_size)
File "/usr/local/lib/python3.5/dist-packages/keras/engine/training.py", line 789, in _standardize_user_data
exception_prefix='target')
File "/usr/local/lib/python3.5/dist-packages/keras/engine/training_utils.py", line 138, in standardize_input_data
str(data_shape))
ValueError: Error when checking target: expected match_cosine_1 to have shape (5,) but got array with shape (1,)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix below ValueError:
match_cosine_1 (MatchCosine) (None, 5) 0 flatten_1[0][0]
flatten_1[1][0]
flatten_1[2][0]
flatten_1[3][0]
flatten_1[4][0]
flatten_1[5][0]
input_2[0][0]
Total params: 112,448
Trainable params: 111,936
Non-trainable params: 512
Traceback (most recent call last):
File "matchingnetwork.py", line 71, in
epochs=10,batch_size=32,verbose=1)
File "/usr/local/lib/python3.5/dist-packages/keras/engine/training.py", line 952, in fit
batch_size=batch_size)
File "/usr/local/lib/python3.5/dist-packages/keras/engine/training.py", line 789, in _standardize_user_data
exception_prefix='target')
File "/usr/local/lib/python3.5/dist-packages/keras/engine/training_utils.py", line 138, in standardize_input_data
str(data_shape))
ValueError: Error when checking target: expected match_cosine_1 to have shape (5,) but got array with shape (1,)