Skip to content

Commit

Permalink
Fix incorrect reference. (sym -> symbol) (apache#7199)
Browse files Browse the repository at this point in the history
  • Loading branch information
knjcode authored and piiswrong committed Jul 26, 2017
1 parent f3f8a99 commit c79ec5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/image-classification/fine-tune.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def get_fine_tune_model(symbol, arg_params, num_classes, layer_name):
num_classes: the number of classes for the fine-tune datasets
layer_name: the layer name before the last fully-connected layer
"""
all_layers = sym.get_internals()
all_layers = symbol.get_internals()
net = all_layers[layer_name+'_output']
net = mx.symbol.FullyConnected(data=net, num_hidden=num_classes, name='fc')
net = mx.symbol.SoftmaxOutput(data=net, name='softmax')
Expand Down

0 comments on commit c79ec5d

Please sign in to comment.