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

Different results in Python and C #263

Open
ajauhar-fw opened this issue Jun 17, 2024 · 2 comments
Open

Different results in Python and C #263

ajauhar-fw opened this issue Jun 17, 2024 · 2 comments

Comments

@ajauhar-fw
Copy link

Hi, I have networks consisting of LSTM, Convolutional and Dense layers, and some BatchNormalization and Concatenate layers. There is also a lambda layer which performs a very simple function - picking one value out of N values in a layer. I am having an issue where the model results from the same data are different when I run the model in Python or in C++ with cppflow. The results are not horribly off, but they are different enough to degrade my model's performance a significant amount, since this si for prediction with high accuracy.

I cannot share details of the model since it's proprietary for my work, but I was hoping someone had run into a similar issue with these layers. Would appreciate any insight!

@ajauhar-fw
Copy link
Author

I have new information: I replicated the problem with an LSTM network grabbed off Kaggle, and modified one of the cppflow examples to load the graph and data from Python. I've added both files in the zip here, hoping someone on this forum or the author can give it a shot
delhi-mean-temperature-lstm_mod.zip

@alex-thk
Copy link

alex-thk commented Nov 2, 2024

Hello, I am sorry but this is not relevant to your particular issue. I was wondering in which format you saved the models?
Thank you

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