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

Can not squeeze dim[2], expected a dimension of 1, got 2 [Op:Squeeze] #13

Open
Tailor2019 opened this issue Apr 11, 2022 · 0 comments
Open

Comments

@Tailor2019
Copy link

Hello!
@Nikolai10
I'got this this error
`File "/usr/local/lib/python3.7/dist-packages/keras/utils/traceback_utils.py", line 67, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/usr/local/lib/python3.7/dist-packages/tensorflow/python/framework/ops.py", line 7186, in raise_from_not_ok_status
raise core._status_to_exception(e) from None # pylint: disable=protected-access
tensorflow.python.framework.errors_impl.InvalidArgumentError: Exception encountered when calling layer "tf.compat.v1.squeeze" (type TFOpLambda).

Can not squeeze dim[2], expected a dimension of 1, got 2 [Op:Squeeze]

Call arguments received:
• input=tf.Tensor(shape=(64, 64, 2, 1, 8192), dtype=float32)
• axis=2
• name=None
• squeeze_dims=None
`
when I'm trying to train scrabble gan on arabic script.
Please help me resolving this problem.
Thanks in advance.

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

1 participant