vandanavk commented on a change in pull request #12498: Code modification for
testcases of various network models in directory example
URL: https://github.com/apache/incubator-mxnet/pull/12498#discussion_r237272758
##########
File path: example/bayesian-methods/bdk_demo.py
##########
@@ -180,18 +183,18 @@ def run_mnist_SGLD(training_num=50000):
minibatch_size = 100
net = get_mnist_sym()
data_shape = (minibatch_size,) + X.shape[1::]
- data_inputs = {'data': nd.zeros(data_shape, ctx=dev()),
- 'softmax_label': nd.zeros((minibatch_size,), ctx=dev())}
+ data_inputs = {'data': nd.zeros(data_shape, ctx=dev(xpu)),
Review comment:
`def run_mnist_SGLD(training_num=50000, xpu=None)` here?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services