fdeeaff5e452e257bf3a3dd76e25c81304cc4c98,mmdnn/conversion/examples/tensorflow/vis_meta.py,,_main,#,14

Before Change


    

    if len(sys.argv) != 3:
        raise ValueError("Usage: python vis_meta.py /path/to/model.meta /path/to/log/directory")
    // load file
    visualize(sys.argv[1], sys.argv[2])
    os.system("tensorboard --logdir=" + sys.argv[2])

After Change


    args, unknown_args = parser.parse_known_args()

    if not os.path.isfile(args.ckpt):
        print("The checkpoint meta file does not exist.")
        exit(1)

    if not os.path.isdir(args.logdir):
        print("The log directory does not exist.")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: Microsoft/MMdnn
Commit Name: fdeeaff5e452e257bf3a3dd76e25c81304cc4c98
Time: 2020-03-15
Author: linmajia@users.noreply.github.com
File Name: mmdnn/conversion/examples/tensorflow/vis_meta.py
Class Name:
Method Name: _main


Project Name: david-abel/simple_rl
Commit Name: fdb8749837b384efd3ee47dc685c1f5649003bc3
Time: 2018-08-24
Author: yagneshrevar@gmail.com
File Name: simple_rl/tasks/navigation/NavigationMDP.py
Class Name: NavigationMDP
Method Name: sample_data


Project Name: ntucllab/libact
Commit Name: b82f226368d589878d2d4634af5b8a457cd331b7
Time: 2016-03-11
Author: yangarbiter@gmail.com
File Name: libact/labelers/interactive_labeler.py
Class Name: InteractiveLabeler
Method Name: label


Project Name: david-abel/simple_rl
Commit Name: 1759cc963f1aa5aa5957989eefada9d89cfd7c09
Time: 2018-08-24
Author: yagneshrevar@gmail.com
File Name: simple_rl/tasks/navigation/NavigationMDP.py
Class Name: NavigationMDP
Method Name: sample_data