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

InvalidArgumentError #1265

Open
ghost opened this issue Apr 1, 2024 · 2 comments
Open

InvalidArgumentError #1265

ghost opened this issue Apr 1, 2024 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 1, 2024

I am getting an error in the decoder inference part.

InvalidArgumentError Traceback (most recent call last)
in <cell line: 2>()
1 # Setup the loop variables.
----> 2 next_token, done, state = decoder.get_initial_state(ex_context)
3 tokens = []
4
5 for n in range(10):

6 frames
/usr/local/lib/python3.10/dist-packages/tensorflow/python/framework/ops.py in raise_from_not_ok_status(e, name)
5981 def raise_from_not_ok_status(e, name) -> NoReturn:
5982 e.message += (" name: " + str(name if name is not None else ""))
-> 5983 raise core._status_to_exception(e) from None # pylint: disable=protected-access
5984
5985

InvalidArgumentError: {{function_node _wrapped__Pack_N_2_device/job:localhost/replica:0/task:0/device:GPU:0}} Shapes of all inputs must match: values[0].shape = [64,1,256] != values[1].shape = [] [Op:Pack] name:

Screenshot from 2024-04-01 21-46-24

Help me with this(Important!!!)

@devashish-bhake
Copy link

I am having the exact same error OP did you find a fix to the issue?

@ctaguchi
Copy link

ctaguchi commented Jun 5, 2024

The same error happened to me with my code that was working a few month ago. In my case, downgrading tensorflow-text to an older version solved it, like pip install "tensorflow-text==2.11.

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

2 participants