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

Expose paddle.framework by pybind11 #2793

Merged
merged 2 commits into from
Jul 11, 2017

Conversation

reyoung
Copy link
Collaborator

@reyoung reyoung commented Jul 10, 2017

  • Export paddle.framework.{Scope, Variable} to paddle.v2.framework.core.
  • See python/paddle/v2/framework/tests/test_scope.py for Python usage
  • See paddle/pybind/pybind.cc for C++ bind code.

@reyoung reyoung requested review from a user and wangkuiyi July 10, 2017 10:48
* Export paddle.framework.{Scope, Variable} to paddle.v2.framework.core.
* See python/paddle/v2/framework/tests/test_scope.py for Python usage
* See paddle/pybind/pybind.cc for C++ bind code.
@@ -0,0 +1,32 @@
#include <paddle/framework/scope.h>
Copy link
Member

Choose a reason for hiding this comment

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

copy right

@jacquesqiao
Copy link
Member

jacquesqiao commented Jul 11, 2017

如果现在这样默认编译到paddle的whl包中,我们自己编译安装会因为python的兼容性问题导致无法使用么?如果有兼容性问题,感觉需要加一个开关。

If pybind has the compatibility problem with python now? If so, we may need to add a switch

Copy link
Member

@jacquesqiao jacquesqiao left a comment

Choose a reason for hiding this comment

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

LGTM!

@jacquesqiao jacquesqiao merged commit 27b196b into PaddlePaddle:develop Jul 11, 2017
@reyoung reyoung deleted the feature/pybind11_api branch October 28, 2017 22:18
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