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

Fixed bugs in C code #36

Merged
merged 1 commit into from
Aug 4, 2018
Merged

Fixed bugs in C code #36

merged 1 commit into from
Aug 4, 2018

Conversation

anshuman23
Copy link
Owner

@josevalim I fixed the problems with the tests and now they are all passing. It was basically a problem with passing data directly into the C API at the time of tensor creation. Tensorflow (even though this is not mentioned in the Tensorflow documentation) was overwriting whatever data was being passed to it for the TF_NewTensor function, (but only after a couple of operations so it wasn't immediately apparent), so the fix was creating a deep copy of the data as an internal variable and then passing that to TF_NewTensor instead of the original data in some functions.

I've tested this extensively now and there are no failures. Also added more tests for image loading.

I have completed the tensor to matrix conversion code as well, but I'll add that as a separate PR right now. I'll be adding more tests for the new functionalities in that PR.

@anshuman23 anshuman23 merged commit c2ef0ba into master Aug 4, 2018
@josevalim
Copy link
Contributor

Great job @anshuman23 ! ❤️

@anshuman23
Copy link
Owner Author

Thanks @josevalim! :)

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

Successfully merging this pull request may close these issues.

None yet

2 participants