Paddle Whacker Mac OS
- Code review; Project management; Integrations; Actions; Packages; Security.
- Start Using Screens 4 Now And control your computers from anywhere. Download Trial Buy Now. Screens is also available on the Mac App Store and Setapp. Supports macOS 10.12 Sierra or later. If you own any previous version of Screens, you are eligible for an upgrade license. We also offer volume discount. For more details about our license usage, click here. Our order process is conducted.
Released:
欢迎您对PaddlePaddle提出建议,非常感谢您对PaddlePaddle的贡献! 在留下您的建议时,辛苦您同步提供如下信息: 版本、环境信息 1)PaddlePaddle版本:请提供您的PaddlePaddle版本号,例如1.1 2)CPU/GPU:您是否使用GPU进行训练,如是,请提供您的CUDA和cuDNN版本号 3)系统环境:请您描述系统类型、版本,例如.
Upgrade python project from paddle-1.x to paddle-2.0
Project description
Upgrade your python model from paddle-1.x to paddle-2.
Attention
paddle1to2
aims to convert python files from paddle-1.x to paddle-2 one by one, it won't handle indirect imports. e.g.
fluid.layers.Layer
in 'b.py' won't get converted.So you have to make sure you have import all used paddle modules, classes, objects directly for every python file before running paddle1to2
.
Install
paddle1to2 support Linux, Mac OS, Windows(Git Bash is recommended), but it requires Python 3.5.4 or higher to run. Multi-Process is supported for Linux and Mac OS, Single-Process is support for Windows, this will lead to performance difference.
- install with pip
ATTENTION: If your device contains multiple versions of python, you may need to run the following commands instead:
- install from source
Develop
If you are a develop, and you want to test your code quickly, you can run the following command in project directory:
Moreover, if you want to run a specific refactor, you can use the following command:
use python -m paddle1to2 -h
to see full list of all refactors.
if you want to run all unittest, use command:
or use command:
to run specific test file.
Change Spec
change_spec
is a python dict defined in spec.py, it defines the rules to refactor your code.
alias
: a list of alias of main aliaspath.to.old_api
, all alias will be replaced with main alias.update_to
:path.to.old_api
will be replaced with this new api if specified.warning
: print specified warning message whenpath.to.old_api
is found. This field will be ignored ifupdate_to
is specified.args_list
: is argument list ofpath.to.old_api
.args_change
: a list of list. It contains following format:['arg', 'new_arg']
: rename a argument, e.g.func(arg=value)
->func(new_arg=value)
['arg', ']
: remove a argument, e.g.func(arg=value)
->func()
[', 'new_arg', 'default_value']
: add a new argument, e.g.func(arg=value)
->func(arg=value, new_arg=default_value)
args_warning
: print specified warning message for specified argument after applyargs_change
.args_transformer
: execute customized transformer on an AST node, it will be called after applyingargs_change
to do further refactor.
Other Tools
- find pattern of specific code snippet, usage:
find_pattern
command will traverse all nodes in AST, if you see code snippet you want, type in 'y' to get pattern.
- find match node in specific code for specific pattern, usage:
you can also specify '--print-results' option to got representation of matched node, specify '--print-lineno' to got line number of matched code.
Acknowledgements
- Bowler: Safe code refactoring for modern Python projects.
- lib2to3: A built-in python library to refactor python code.
- fissix: A backport of latest lib2to3, with enhancements.
Release historyRelease notifications RSS feed
0.0.28
0.0.27
0.0.26
0.0.25
0.0.24
0.0.23
0.0.22
0.0.21
0.0.20 yanked
0.0.19 yanked
0.0.18 yanked
0.0.17 yanked
0.0.16 yanked
0.0.15 yanked
0.0.14 yanked
0.0.13 yanked
0.0.12 yanked
0.0.11 yanked
0.0.10 yanked
Paddle Whacker Mac Os X
0.0.9 yanked
0.0.8 yanked
0.0.7 yanked
0.0.6 yanked
0.0.5 yanked
0.0.4 yanked
0.0.2 yanked
0.0.1 yanked
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size paddle1to2-0.0.28-py3-none-any.whl (108.1 kB) | File type Wheel | Python version py3 | Upload date | Hashes |
Filename, size paddle1to2-0.0.28.tar.gz (91.9 kB) | File type Source | Python version None | Upload date | Hashes |
Hashes for paddle1to2-0.0.28-py3-none-any.whl
Algorithm | Hash digest |
---|---|
SHA256 | 8b3ae3920619b0ebbdfede6a5295c3cfe79a983e1e056033f11f72ce434e933c |
MD5 | 02d9ed0b9e175b9a4c9b7948a72e0a8d |
BLAKE2-256 | 1f82ed5c41c1a77744024f88f470380de188d9b23677dffdcae57f49e4ac2757 |
Paddle Whacker Mac Os Pro
Hashes for paddle1to2-0.0.28.tar.gz
Paddle Whacker Mac Os Download
Algorithm | Hash digest |
---|---|
SHA256 | ea0bea34f19115c153f07a83e380ce0c2346f630cab92e0de04642edb184fbb0 |
MD5 | bfdf5720146b228d5ad5d16c9a4269d4 |
BLAKE2-256 | 56f40b4cfbc35cfbf7b7888a4fffa4d6b4846e77072fcc153e5ae3d4df8b17bd |