You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

contributing.rst 8.0 kB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. .. _contributing:
  2. ===============
  3. Contributing
  4. ===============
  5. TensorLayer 3.0 is a major ongoing research project in Peking University and Pengcheng Laboratory, the first version was established at Imperial College London in 2016. The goal of the project is to develop a compositional languagea that is compatible with multiple deep learning frameworks,
  6. while complex learning systems can be built through composition of neural network modules.
  7. Numerous contributors come from various horizons such as: Imperial College London, Tsinghua University, Carnegie Mellon University, Stanford, University of Technology of Compiegne, Google, Microsoft, Bloomberg and etc.
  8. You can easily open a Pull Request (PR) on `GitHub`_, every little step counts and will be credited.
  9. As an open-source project, we highly welcome and value contributions!
  10. **If you are interested in working with us, please contact us at:** `tensorlayer@gmail.com <tensorlayer@gmail.com>`_.
  11. .. image:: ../../img/join_slack.png
  12. :width: 30 %
  13. :align: center
  14. :target: https://join.slack.com/t/tensorlayer/shared_invite/enQtMjUyMjczMzU2Njg4LWI0MWU0MDFkOWY2YjQ4YjVhMzI5M2VlZmE4YTNhNGY1NjZhMzUwMmQ2MTc0YWRjMjQzMjdjMTg2MWQ2ZWJhYzc
  15. Project Maintainers
  16. --------------------------
  17. The TensorLayer project was started by `Hao Dong <https://zsdonghao.github.io>`_ at Imperial College London in June 2016.
  18. For TensorLayer 3.x, it is now actively developing and maintaining by the following people *(in alphabetical order)*:
  19. - **Cheng Lai** (`@Laicheng0830 <https://github.com/Laicheng0830>`_) - `<https://Laicheng0830.github.io>`_
  20. - **Hao Dong** (`@zsdonghao <https://github.com/zsdonghao>`_) - `<https://zsdonghao.github.io>`_
  21. - **Jiarong Han** (`@hanjr92 <https://github.com/hanjr92>`_) - `<https://hanjr92.github.io>`_
  22. For TensorLayer 2.x, it is now actively developing and maintaining by the following people who has more than 50 contributions:
  23. - **Hao Dong** (`@zsdonghao <https://github.com/zsdonghao>`_) - `<https://zsdonghao.github.io>`_
  24. - **Jingqing Zhang** (`@JingqingZ <https://github.com/JingqingZ>`_) - `<https://jingqingz.github.io>`_
  25. - **Rundi Wu** (`@ChrisWu1997 <https://github.com/ChrisWu1997>`_) - `<http://chriswu1997.github.io>`_
  26. - **Ruihai Wu** (`@warshallrho <https://github.com/warshallrho>`_) - `<https://warshallrho.github.io/>`_
  27. For TensorLayer 1.x, it was actively developed and maintained by the following people *(in alphabetical order)*:
  28. - **Akara Supratak** (`@akaraspt <https://github.com/akaraspt>`_) - `<https://akaraspt.github.io>`_
  29. - **Fangde Liu** (`@fangde <https://github.com/fangde>`_) - `<http://fangde.github.io/>`_
  30. - **Guo Li** (`@lgarithm <https://github.com/lgarithm>`_) - `<https://lgarithm.github.io>`_
  31. - **Hao Dong** (`@zsdonghao <https://github.com/zsdonghao>`_) - `<https://zsdonghao.github.io>`_
  32. - **Jonathan Dekhtiar** (`@DEKHTIARJonathan <https://github.com/DEKHTIARJonathan>`_) - `<https://www.jonathandekhtiar.eu>`_
  33. - **Luo Mai** (`@luomai <https://github.com/luomai>`_) - `<http://www.doc.ic.ac.uk/~lm111/>`_
  34. - **Pan Wang** (`@FerociousPanda <http://github.com/FerociousPanda>`_) - `<http://github.com/FerociousPanda>`_ (UI)
  35. - **Simiao Yu** (`@nebulaV <https://github.com/nebulaV>`_) - `<https://nebulav.github.io>`_
  36. Numerous other contributors can be found in the `Github Contribution Graph <https://github.com/tensorlayer/tensorlayer/graphs/contributors>`_.
  37. What to contribute
  38. ------------------
  39. Your method and example
  40. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  41. If you have a new method or example in terms of Deep learning or Reinforcement learning, you are welcome to contribute.
  42. * Provide your layers or examples, so everyone can use it.
  43. * Explain how it would work, and link to a scientific paper if applicable.
  44. * Keep the scope as narrow as possible, to make it easier to implement.
  45. Report bugs
  46. ~~~~~~~~~~~
  47. Report bugs at the `GitHub`_, we normally will fix it in 5 hours.
  48. If you are reporting a bug, please include:
  49. * your TensorLayer, TensorFlow and Python version.
  50. * steps to reproduce the bug, ideally reduced to a few Python commands.
  51. * the results you obtain, and the results you expected instead.
  52. If you are unsure whether the behavior you experience is a bug, or if you are
  53. unsure whether it is related to TensorLayer or TensorFlow, please just ask on `our
  54. mailing list`_ first.
  55. Fix bugs
  56. ~~~~~~~~
  57. Look through the GitHub issues for bug reports. Anything tagged with "bug" is
  58. open to whoever wants to implement it. If you discover a bug in TensorLayer you can
  59. fix yourself, by all means feel free to just implement a fix and not report it
  60. first.
  61. Write documentation
  62. ~~~~~~~~~~~~~~~~~~~
  63. Whenever you find something not explained well, misleading, glossed over or
  64. just wrong, please update it! The *Edit on GitHub* link on the top right of
  65. every documentation page and the *[source]* link for every documented entity
  66. in the API reference will help you to quickly locate the origin of any text.
  67. How to contribute
  68. -----------------
  69. Edit on GitHub
  70. ~~~~~~~~~~~~~~
  71. As a very easy way of just fixing issues in the documentation, use the *Edit
  72. on GitHub* link on the top right of a documentation page or the *[source]* link
  73. of an entity in the API reference to open the corresponding source file in
  74. GitHub, then click the *Edit this file* link to edit the file in your browser
  75. and send us a Pull Request. All you need for this is a free GitHub account.
  76. For any more substantial changes, please follow the steps below to setup
  77. TensorLayer for development.
  78. Documentation
  79. ~~~~~~~~~~~~~
  80. The documentation is generated with `Sphinx
  81. <http://sphinx-doc.org/latest/index.html>`_. To build it locally, run the
  82. following commands:
  83. .. code:: bash
  84. pip install Sphinx
  85. sphinx-quickstart
  86. cd docs
  87. make html
  88. If you want to re-generate the whole docs, run the following commands:
  89. .. code :: bash
  90. cd docs
  91. make clean
  92. make html
  93. To write the docs, we recommend you to install `Local RTD VM <http://docs.readthedocs.io/en/latest/custom_installs/local_rtd_vm.html>`_.
  94. Afterwards, open ``docs/_build/html/index.html`` to view the documentation as
  95. it would appear on `readthedocs <http://tensorlayer.readthedocs.org/>`_. If you
  96. changed a lot and seem to get misleading error messages or warnings, run
  97. ``make clean html`` to force Sphinx to recreate all files from scratch.
  98. When writing docstrings, follow existing documentation as much as possible to
  99. ensure consistency throughout the library. For additional information on the
  100. syntax and conventions used, please refer to the following documents:
  101. * `reStructuredText Primer <http://sphinx-doc.org/rest.html>`_
  102. * `Sphinx reST markup constructs <http://sphinx-doc.org/markup/index.html>`_
  103. * `A Guide to NumPy/SciPy Documentation <https://github.com/numpy/numpy/blob/master/doc/HOWTO_DOCUMENT.rst.txt>`_
  104. Testing
  105. ~~~~~~~
  106. TensorLayer has a code coverage of 100%, which has proven very helpful in the past,
  107. but also creates some duties:
  108. * Whenever you change any code, you should test whether it breaks existing
  109. features by just running the test scripts.
  110. * Every bug you fix indicates a missing test case, so a proposed bug fix should
  111. come with a new test that fails without your fix.
  112. Sending Pull Requests
  113. ~~~~~~~~~~~~~~~~~~~~~
  114. When you're satisfied with your addition, the tests pass and the documentation
  115. looks good without any markup errors, commit your changes to a new branch, push
  116. that branch to your fork and send us a Pull Request via GitHub's web interface.
  117. All these steps are nicely explained on GitHub:
  118. https://guides.github.com/introduction/flow/
  119. When filing your Pull Request, please include a description of what it does, to
  120. help us reviewing it. If it is fixing an open issue, say, issue #123, add
  121. *Fixes #123*, *Resolves #123* or *Closes #123* to the description text, so
  122. GitHub will close it when your request is merged.
  123. .. _Release: https://github.com/tensorlayer/tensorlayer/releases
  124. .. _GitHub: https://github.com/tensorlayer/tensorlayer
  125. .. _our mailing list: hao.dong11@imperial.ac.uk

TensorLayer3.0 是一款兼容多种深度学习框架为计算后端的深度学习库。计划兼容TensorFlow, Pytorch, MindSpore, Paddle.