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

Add more convenience math functions #146

Closed
mavenlin opened this issue Feb 24, 2014 · 3 comments
Closed

Add more convenience math functions #146

mavenlin opened this issue Feb 24, 2014 · 3 comments

Comments

@mavenlin
Copy link
Contributor

Many functions are missing from caffe.
For example

  1. elementwise abs
  2. sum of matrix, col sum row sum and total sum. (though can be done by gemv, it might be more convenient to provide a wrapper, multipliers can be allocated at run time and store in a global map).
  3. non-in-place scaling, currently it is in place.
  4. elementwise sign

A large proportion of the commonly needed function are elementwise operations.
Will we consider bringing in additional dependencies? e.g. thrust

@sergeyk
Copy link
Contributor

sergeyk commented Feb 24, 2014

Great suggestions! Anyone who sends PRs (into dev, with test) referencing this issue will be promptly merged.

@kloudkl
Copy link
Contributor

kloudkl commented Feb 25, 2014

I used sum of abs in #113, element wise sign in #113 and #141, and hamming distance in #141. Non-in-place scaling is a combination of copying and in-place scaling. I am trying to figure out the others and a PR is on the way.

@shelhamer
Copy link
Member

Closing, as this will be solved by #159. Thanks for the suggestion @mavenlin and commits @kloudkl.

lukeyeager pushed a commit to lukeyeager/caffe that referenced this issue May 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants