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

Error while training the model #47

Open
Nitinvermaa opened this issue May 10, 2024 · 3 comments
Open

Error while training the model #47

Nitinvermaa opened this issue May 10, 2024 · 3 comments

Comments

@Nitinvermaa
Copy link

I encounter below error while executing example.py from basic_chatbot

Below is my system setup
Windows 11
python 3.9
neuralintents==0.1.0

Please let me how to solve this problem

Error:
ValueError: Exception encountered when calling Sequential.call().

Invalid input shape for input Tensor("sequential_1/Cast:0", shape=(None, 44), dtype=float32). Expected shape (None, None, 44), but input has incompatible shape (None, 44)

Arguments received by Sequential.call():
• inputs=tf.Tensor(shape=(None, 44), dtype=int32)
• training=True
• mask=None

@huineng
Copy link

huineng commented May 18, 2024

chatgpt suggested me to change this line

#self.model.add(InputLayer(input_shape=(None,X.shape[1])))
self.model.add(InputLayer(input_shape=(X.shape[1],)))

@Davesoul
Copy link

Thanks a lot @huineng. I applied the change in the assistants.py from neuralintents library.

@rseward
Copy link

rseward commented Sep 7, 2024

@Davesoul will this make it into the master branch? Or are gonna have to fork to do this ourselves? Just getting my feet wet with the project, trying to judge it's usefulness.
@huineng Good work with chatgpt! It can be like pulling teeth sometimes to get a useful suggestion. :-( But I am the beneficiary of your work!

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

4 participants