Skip to content

Commit

Permalink
fix a type, the input for center loss should be embedding layer
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanyang committed Oct 29, 2016
1 parent e26ef80 commit c03bca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def get_symbol(batchsize=64):


ce_loss = mx.symbol.SoftmaxOutput(data=fc2, label=softmax_label, name='softmax')
center_loss_ = mx.symbol.Custom(data=fc2, label=center_label, name='center_loss_', op_type='centerloss',\
center_loss_ = mx.symbol.Custom(data=embedding, label=center_label, name='center_loss_', op_type='centerloss',\
num_class=10, alpha=0.5, scale=0.01, batchsize=batchsize)
center_loss = mx.symbol.MakeLoss(name='center_loss', data=center_loss_)
mlp = mx.symbol.Group([ce_loss, center_loss])
Expand Down

0 comments on commit c03bca7

Please sign in to comment.