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

Implement fmod, remainder, equal in Cutorch #603

Merged
merged 3 commits into from
Nov 16, 2016
Merged

Conversation

killeent
Copy link
Contributor

Please pay special attention in review to equal. Fmod/Remainder were both similar to existing cutorch functions, they simply required new Op definitions.

@soumith soumith merged commit 857f6d2 into torch:master Nov 16, 2016
// 1 if the two tensors are equal at a position, otherwise 0. If the minimum value
// in this buffer is 1, the two tensors are equal, otherwise they are not

THLongStorage *size = THCTensor_(newSizeOf)(state, self_);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i merged this a tad bit prematurely, but ugh this is a memory leak.
you need to free size after using it
THLongStorage_free(size)

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.

2 participants