205df55987d9c62c13738bebc5ffe18b738f1c50,train_vidreid_xent.py,,main,#,35

Before Change



    if args.fixbase_epoch > 0:
        if hasattr(model, "classifier") and isinstance(model.classifier, nn.Module):
            optimizer_tmp = init_optimizer(model.classifier.parameters(), **optimizer_kwargs(args))
        else:
            print("Warn: model has no attribute "classifier" and fixbase_epoch is reset to 0")
            args.fixbase_epoch = 0

After Change



        del optimizer_tmp
        print("Now open all layers for training")
        raise NotImplementedError

    for epoch in range(args.start_epoch, args.max_epoch):
        start_train_time = time.time()
        train(epoch, model, criterion, optimizer, trainloader, use_gpu)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: KaiyangZhou/deep-person-reid
Commit Name: 205df55987d9c62c13738bebc5ffe18b738f1c50
Time: 2018-11-08
Author: k.zhou@qmul.ac.uk
File Name: train_vidreid_xent.py
Class Name:
Method Name: main


Project Name: AIRLab-POLIMI/mushroom
Commit Name: a1c1bdc135a1f030a5c306452c02242669e405d4
Time: 2019-08-21
Author: boris.ilpossente@hotmail.it
File Name: mushroom/policy/torch_policy.py
Class Name: TorchPolicy
Method Name: get_weights


Project Name: AIRLab-POLIMI/mushroom
Commit Name: a1c1bdc135a1f030a5c306452c02242669e405d4
Time: 2019-08-21
Author: boris.ilpossente@hotmail.it
File Name: mushroom/policy/torch_policy.py
Class Name: TorchPolicy
Method Name: set_weights


Project Name: AIRLab-POLIMI/mushroom
Commit Name: a1c1bdc135a1f030a5c306452c02242669e405d4
Time: 2019-08-21
Author: boris.ilpossente@hotmail.it
File Name: mushroom/policy/torch_policy.py
Class Name: TorchPolicy
Method Name: parameters