Paddle Whacker Mac OS

broken image


OS Platform (eg.Mac OS 10.14)-Other imformation: Distriuted training/informantion of operator/ Graphics card storage Note: You can get most of the information by running summaryenv.py. To Reproduce Steps to reproduce the behavior Describe your current behavior Code to. So you have to make sure you have import all used paddle modules, classes, objects directly for every python file before running paddle1to2. 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.

MacPaw provides software to help Mac users clean, speed up and protect their devices. It wanted to explore the benefits of transitioning away from software licensing and releasing the newest version of its flagship CleanMyMac product through a SaaS model. To use the pedal on Mac OS, it needs to be programmed on an Windows computer. I programmed it on a Windows computer that was current at the time. Fortunately for the new pedal, now I have VMWare and Windows 10. Unfortunately, the software for this pedal does.

Latest version

Released:

Upgrade python project from paddle-1.x to paddle-2.0

Project description

Minima (feneric) mac os. 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.

  1. install with pip

ATTENTION: If your device contains multiple versions of python, you may need to run the following commands instead:

  1. 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 alias path.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 when path.to.old_api is found. This field will be ignored if update_to is specified.
  • args_list: is argument list of path.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 apply args_change.
  • args_transformer: execute customized transformer on an AST node, it will be called after applying args_change to do further refactor.

Other Tools

  1. find pattern of specific code snippet, usage:
Whacker

find_pattern command will traverse all nodes in AST, if you see code snippet you want, type in 'y' to get pattern.

  1. 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

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.

Files for paddle1to2, version 0.0.28
Filename, sizeFile typePython versionUpload dateHashes
Filename, size paddle1to2-0.0.28-py3-none-any.whl (108.1 kB) File type Wheel Python version py3 Upload dateHashes
Filename, size paddle1to2-0.0.28.tar.gz (91.9 kB) File type Source Python version None Upload dateHashes
Close

Hashes for paddle1to2-0.0.28-py3-none-any.whl

Hashes for paddle1to2-0.0.28-py3-none-any.whl
AlgorithmHash digest
SHA2568b3ae3920619b0ebbdfede6a5295c3cfe79a983e1e056033f11f72ce434e933c
MD502d9ed0b9e175b9a4c9b7948a72e0a8d
BLAKE2-2561f82ed5c41c1a77744024f88f470380de188d9b23677dffdcae57f49e4ac2757
Close
Paddle Whacker Mac OS

find_pattern command will traverse all nodes in AST, if you see code snippet you want, type in 'y' to get pattern.

  1. 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

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.

Files for paddle1to2, version 0.0.28
Filename, sizeFile typePython versionUpload dateHashes
Filename, size paddle1to2-0.0.28-py3-none-any.whl (108.1 kB) File type Wheel Python version py3 Upload dateHashes
Filename, size paddle1to2-0.0.28.tar.gz (91.9 kB) File type Source Python version None Upload dateHashes
Close

Hashes for paddle1to2-0.0.28-py3-none-any.whl

Hashes for paddle1to2-0.0.28-py3-none-any.whl
AlgorithmHash digest
SHA2568b3ae3920619b0ebbdfede6a5295c3cfe79a983e1e056033f11f72ce434e933c
MD502d9ed0b9e175b9a4c9b7948a72e0a8d
BLAKE2-2561f82ed5c41c1a77744024f88f470380de188d9b23677dffdcae57f49e4ac2757
Close

Hashes for paddle1to2-0.0.28.tar.gz

Hashes for paddle1to2-0.0.28.tar.gz
AlgorithmHash digest
SHA256ea0bea34f19115c153f07a83e380ce0c2346f630cab92e0de04642edb184fbb0
MD5bfdf5720146b228d5ad5d16c9a4269d4
BLAKE2-25656f40b4cfbc35cfbf7b7888a4fffa4d6b4846e77072fcc153e5ae3d4df8b17bd
Latest version

Released:

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

paddle_upgrade_tool 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 paddle_upgrade_tool.

Install

paddle_upgrade_tool 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.

  1. install with pip

ATTENTION: If your device contains multiple versions of python, you may need to run the following commands instead:

  1. 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 paddle_upgrade_tool -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 alias path.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 when path.to.old_api is found. This field will be ignored if update_to is specified.
  • args_list: is argument list of path.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 apply args_change.
  • args_transformer: execute customized transformer on an AST node, it will be called after applying args_change to do further refactor.

Other Tools

  1. 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.

  1. find match node in specific code for specific pattern, usage:

Connections mac os. 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.27

0.0.26

0.0.25

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for paddle-upgrade-tool, version 0.0.27
Filename, sizeFile typePython versionUpload dateHashes
Filename, size paddle_upgrade_tool-0.0.27-py2-none-any.whl (111.1 kB) File type Wheel Python version py2 Upload dateHashes
Filename, size paddle_upgrade_tool-0.0.27-py3-none-any.whl (111.1 kB) File type Wheel Python version py3 Upload dateHashes
Filename, size paddle_upgrade_tool-0.0.27.tar.gz (94.4 kB) File type Source Python version None Upload dateHashes
Close

Hashes for paddle_upgrade_tool-0.0.27-py2-none-any.whl

Hashes for paddle_upgrade_tool-0.0.27-py2-none-any.whl
AlgorithmHash digest
SHA2567c2ff0de223c792375fb140afcc357cc2ddc88d7b0278f7c43aa7575780e8ae4
MD5798f78ecaea1014c5ff13e3a64727527
BLAKE2-2569f756640863baebb1fb84dae92431eb1ce1a3d746caa038912d76cbbf92bae8d

Paddle Whacker Mac Os X

Close

Hashes for paddle_upgrade_tool-0.0.27-py3-none-any.whl

Hashes for paddle_upgrade_tool-0.0.27-py3-none-any.whl
AlgorithmHash digest
SHA2560d9a878c0680d6123905beee35b8ab00414d5cb705e76b9b87c72cd5481b7427
MD571f8e417a3ba7a3ee14fb837355f3637
BLAKE2-256972457a48429c70f4d1894894f45849f8a721208c81334e3782cec6dbafb7a51
Close

Hashes for paddle_upgrade_tool-0.0.27.tar.gz

Paddle Whacker Mac Os Catalina

Hashes for paddle_upgrade_tool-0.0.27.tar.gz
AlgorithmHash digest
SHA256993bdbabc813ac4abb7b72e8cf1b18f9dfa110d7ac15b5cd8d518b707a6fef45
MD54fd366633cb8a14e159c761b97386568
BLAKE2-2560b05c708c4940304463ade05ad181a268021eb6dc31319576bc855a85ab43df3




broken image