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

Training Error #141

Open
RajarshiBhadra opened this issue Jun 13, 2021 · 1 comment
Open

Training Error #141

RajarshiBhadra opened this issue Jun 13, 2021 · 1 comment

Comments

@RajarshiBhadra
Copy link

I am facing an issue while trying to train a model as follows

`Epoch 1/4

InvalidArgumentError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/tensorflow_core/python/client/session.py in _do_call(self, fn, *args)
1364 try:
-> 1365 return fn(*args)
1366 except errors.OpError as e:

14 frames
/usr/local/lib/python3.7/dist-packages/tensorflow_core/python/client/session.py in _run_fn(feed_dict, fetch_list, target_list, options, run_metadata)
1349 return self._call_tf_sessionrun(options, feed_dict, fetch_list,
-> 1350 target_list, run_metadata)
1351

/usr/local/lib/python3.7/dist-packages/tensorflow_core/python/client/session.py in _call_tf_sessionrun(self, options, feed_dict, fetch_list, target_list, run_metadata)
1442 fetch_list, target_list,
-> 1443 run_metadata)
1444

InvalidArgumentError: Incompatible shapes: [50,16] vs. [50,15]
[[{{node loss/target_text_loss/mul}}]]`

I understand 50 is the batch size I am giving but the 16 or 15 are not parameters I am providing. Any Idea what might be causing this error?

@lvapeab
Copy link
Owner

lvapeab commented Jun 14, 2021

Hi,
it seems an output vocabulary dimension issue. Were you able to run the examples? Can you post the config file you are using?

Thanks

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