Skip to content

Commit

Permalink
More fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed May 4, 2017
1 parent 8c15b09 commit 3b78554
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/how_to/predict.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3405,7 +3405,7 @@
},
"outputs": [],
"source": [
"mod = mx.mod.Module(symbol=sym, context=mx.gpu())"
"mod = mx.mod.Module(symbol=sym, label_names=None, context=mx.gpu())"
]
},
{
Expand Down Expand Up @@ -3609,7 +3609,7 @@
"outputs": [],
"source": [
"batch_size = 32\n",
"mod2 = mx.mod.Module(symbol=sym, context=mx.gpu())\n",
"mod2 = mx.mod.Module(symbol=sym, label_names=None, context=mx.gpu())\n",
"mod2.bind(for_training=False, data_shapes=[('data', (batch_size,3,224,224))])\n",
"mod2.set_params(arg_params, aux_params, allow_missing=True)"
]
Expand Down Expand Up @@ -3725,7 +3725,7 @@
"source": [
"all_layers = sym.get_internals()\n",
"sym3 = all_layers['flatten0_output']\n",
"mod3 = mx.mod.Module(symbol=sym3, context=mx.gpu())\n",
"mod3 = mx.mod.Module(symbol=sym3, label_names=None, context=mx.gpu())\n",
"mod3.bind(for_training=False, data_shapes=[('data', (1,3,224,224))])\n",
"mod3.set_params(arg_params, aux_params)\n"
]
Expand Down

0 comments on commit 3b78554

Please sign in to comment.