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

Python Generate OpCreation Methods by OpProto #2893

Merged
merged 5 commits into from
Jul 17, 2017

Commits on Jul 15, 2017

  1. Python Generate OpCreation Methods by OpProto

    All OpCreation method are generated by
    `create_op_creation_methods::__bootstrap__` method, and stores in
    `op_creations` object and its methods.
    
    There are three parts to implement this feature.
    
    1. Get all registered `OpProto` from C++ side. It is implemented in
    `get_all_op_protos` method.
    1. Create a function to convert `kwargs` to `OpDesc` base on each op's
    `OpProto`. The `OpDescCreationMethod` class.
    1. Convert `OpProto` to `docstring` by `get_docstring_from_op_proto`
    method.
    
    All three methods are unit tested. The `__bootstrap__` just combines
    them together and create a method in runtime.
    
    For details, please reference the doc string in
    `create_op_creation_methods.py` and the unit test
    `test_op_creation_methods.py`.
    reyoung committed Jul 15, 2017
    Configuration menu
    Copy the full SHA
    9e0c680 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2017

  1. Configuration menu
    Copy the full SHA
    68f6ac0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c5bc126 View commit details
    Browse the repository at this point in the history
  3. Fix merge error before

    reyoung committed Jul 17, 2017
    Configuration menu
    Copy the full SHA
    c78a5e5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0e77b31 View commit details
    Browse the repository at this point in the history