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

Clean up pycaffe internals #1014

Merged
merged 9 commits into from
Sep 1, 2014
Merged

Clean up pycaffe internals #1014

merged 9 commits into from
Sep 1, 2014

Conversation

longjon
Copy link
Contributor

@longjon longjon commented Aug 31, 2014

This PR makes no interface changes except for longjon@88221c9 (@shelhamer and others, let me know if that will cause any problems). It does bring pycaffe more in line with standard (and Google) C++ style.

More importantly, this PR makes it possible to use the _caffe module in C++ code that embeds the Python interpreter. This will enable a forthcoming PR (#1020).

I'll let the commit log tell the rest.

We will not actually support double nets in Python with this commit, but
this change will be necessary to create layers that embed Python.
This brings pycaffe more in line with usual C++ style, and will allow
the wrapper classes to be used within caffe when embedding Python.
Attaching names to pycaffe Blobs and Layers isn't necessary anymore,
since they are now accessed by name. This change brings PyBlob and
PyLayer closer to their C++ counterparts, and makes it easier to pass
around blobs without knowing their names, e.g., when embedding Python
in a layer.
While this function should never be called in the current interface, it
will be necessary to have when embedding Python.
@kloudkl
Copy link
Contributor

kloudkl commented Aug 31, 2014

Sounds interesting. Are you developing a Torch7-like interface?

@shelhamer shelhamer self-assigned this Aug 31, 2014
@shelhamer
Copy link
Member

👍 on 88221c9 and the Python layer project. Will review + merge soon.

shelhamer added a commit that referenced this pull request Sep 1, 2014
@shelhamer shelhamer merged commit c80c6f3 into BVLC:dev Sep 1, 2014
@shelhamer
Copy link
Member

Thanks Jon! Can't wait for your sweet incoming PRs.

mitmul pushed a commit to mitmul/caffe that referenced this pull request Sep 30, 2014
RazvanRanca pushed a commit to RazvanRanca/caffe that referenced this pull request Nov 4, 2014
@longjon longjon deleted the cleaner-pycaffe branch December 30, 2014 04:57
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.

3 participants