5d9cfbd469ec9866c22c1d699f8eb08bdf8321fa,src/train_softmax.py,,get_symbol,#Any#Any#Any#,126

Before Change


    m = args.margin_m
    assert(s>0.0)
    assert(m>0.0)
    _weight = mx.symbol.Variable("fc7_weight", shape=(args.num_classes, args.emb_size), lr_mult=1.0)
    _weight = mx.symbol.L2Normalization(_weight, mode="instance")
    nembedding = mx.symbol.L2Normalization(embedding, mode="instance", name="fc1n")*s
    fc7 = mx.sym.FullyConnected(data=nembedding, weight = _weight, no_bias = True, num_hidden=args.num_classes, name="fc7")
    s_m = s*m

After Change


  elif args.network[0]=="s":
    print("init spherenet", args.num_layers)
    embedding = spherenet.get_symbol(args.emb_size, args.num_layers)
  elif args.network[0]=="y":
    print("init mobilefacenet", args.num_layers)
    embedding = fmobilefacenet.get_symbol(args.emb_size)
  else:
    print("init resnet", args.num_layers)
    embedding = fresnet.get_symbol(args.emb_size, args.num_layers, 
        version_se=args.version_se, version_input=args.version_input, 
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: deepinsight/insightface
Commit Name: 5d9cfbd469ec9866c22c1d699f8eb08bdf8321fa
Time: 2018-04-22
Author: guojia@gmail.com
File Name: src/train_softmax.py
Class Name:
Method Name: get_symbol


Project Name: dgasmith/opt_einsum
Commit Name: 265614193fce8dfc8aec34be3539d9b068f5b259
Time: 2018-08-18
Author: fritzo@uber.com
File Name: opt_einsum/parser.py
Class Name:
Method Name: convert_to_valid_einsum_chars


Project Name: deepinsight/insightface
Commit Name: ad074bd5f47d2807a62692361c5a50aa889b9d80
Time: 2018-04-22
Author: guojia@gmail.com
File Name: src/train_softmax.py
Class Name:
Method Name: get_symbol