Install working tensorflow or pytorch via standard conda environment workflow.
The recommended conda-based install process works smoothly:
$ # Create a fresh environment| import sys, getopt | |
| import tensorflow as tf | |
| usage_str = 'python tensorflow_rename_variables.py --checkpoint_dir=path/to/dir/ ' \ | |
| '--replace_from=substr --replace_to=substr --add_prefix=abc --dry_run' | |
| def rename(checkpoint_dir, replace_from, replace_to, add_prefix, dry_run): | |
| checkpoint = tf.train.get_checkpoint_state(checkpoint_dir) |
| function recipient = matlabmail(recipient, message, subject, sender, psswd) | |
| % MATLABMAIL Send an email from a predefined gmail account. | |
| % | |
| % MATLABMAIL( recipient, message, subject ) | |
| % | |
| % sends the character string stored in 'message' with subjectline 'subject' | |
| % to the address in 'recipient'. | |
| % This requires that the sending address is a GMAIL email account. | |
| % | |
| % MATLABMAIL( recipient, message, subject, sender, passwd ) |