提交 733adf01 authored 作者: Frederic Bastien's avatar Frederic Bastien

flake8 fix and python 3 syntax fix

上级 5df7cb2f
...@@ -602,7 +602,7 @@ def use(device, ...@@ -602,7 +602,7 @@ def use(device,
warn = ("Your CuDNN version is more recent then Theano." warn = ("Your CuDNN version is more recent then Theano."
" If you see problems, try updating Theano or" " If you see problems, try updating Theano or"
" downgrading CuDNN to version 4.") " downgrading CuDNN to version 4.")
except Exception, e: except Exception:
pass pass
print("Using gpu device %d: %s (CNMeM is %s, CuDNN %s)" % ( print("Using gpu device %d: %s (CNMeM is %s, CuDNN %s)" % (
active_device_number(), active_device_number(),
......
...@@ -7,7 +7,7 @@ from theano import Apply, tensor, config, Variable ...@@ -7,7 +7,7 @@ from theano import Apply, tensor, config, Variable
from theano.scalar import as_scalar, constant, Log from theano.scalar import as_scalar, constant, Log
from theano.gradient import DisconnectedType, grad_not_implemented from theano.gradient import DisconnectedType, grad_not_implemented
from theano.gof import Optimizer, local_optimizer, COp from theano.gof import Optimizer, local_optimizer, COp
from theano.gof.type import CDataType, Generic from theano.gof.type import CDataType
from theano.compile import optdb from theano.compile import optdb
from theano.compile.ops import shape_i from theano.compile.ops import shape_i
from theano.tensor.nnet import LogSoftmax, SoftmaxGrad from theano.tensor.nnet import LogSoftmax, SoftmaxGrad
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论