提交 b0f2c6df authored 作者: Nan Rosemary Ke's avatar Nan Rosemary Ke

uncomment code in compile/profilemode.py

上级 3851f020
...@@ -694,21 +694,21 @@ Test them first, as they are not guaranteed to always provide a speedup.""") ...@@ -694,21 +694,21 @@ Test them first, as they are not guaranteed to always provide a speedup.""")
break break
# tip 6 # tip 6
# import theano.sandbox.cuda as cuda import theano.sandbox.cuda as cuda
# from theano.tensor.nnet import LogSoftmax from theano.tensor.nnet import LogSoftmax
# import theano.tensor.signal.pool as pool import theano.tensor.signal.pool as pool
# import theano.gpuarray import theano.gpuarray
# for a, t in iteritems(apply_time): for a, t in iteritems(apply_time):
# node = a[1] node = a[1]
# if (isinstance(node.op, pool.Pool)): if (isinstance(node.op, pool.Pool)):
# if (not cuda.dnn.dnn_available() and not theano.gpuarray.dnn.dnn_present()): if (not cuda.dnn.dnn_available() and not theano.gpuarray.dnn.dnn_present()):
# print("Install CuDNN to do pooling faster" print("Install CuDNN to do pooling faster"
# "this allows the operation to run on GPU") "this allows the operation to run on GPU")
# if (isinstance(node.op, LogSoftmax)): if (isinstance(node.op, LogSoftmax)):
# if (not cuda.dnn.dnn_available() and not theano.gpuarray.dnn.dnn_present()): if (not cuda.dnn.dnn_available() and not theano.gpuarray.dnn.dnn_present()):
# print("Install CuDNN to do LogSoftmax faster" print("Install CuDNN to do LogSoftmax faster"
# "this allows the operation to run on GPU") "this allows the operation to run on GPU")
if not printed_tip: if not printed_tip:
print(" Sorry, no tip for today.") print(" Sorry, no tip for today.")
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论