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.

list_py_files.py 549 B

4 years ago
1234567891011121314151617181920212223242526
  1. import os
  2. __all__ = [
  3. 'list_all_py_files',
  4. ]
  5. _excludes = [
  6. 'tensorlayer/db.py',
  7. ]
  8. def _list_py_files(root):
  9. for root, _dirs, files in os.walk(root):
  10. if root.find('third_party') != -1:
  11. continue
  12. for file in files:
  13. if file.endswith('.py'):
  14. yield os.path.join(root, file)
  15. def list_all_py_files():
  16. dirs = ['tensorlayer', 'tests', 'example']
  17. for d in dirs:
  18. for filename in _list_py_files(d):
  19. if filename not in _excludes:
  20. yield filename

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