提交 f27aa3fa authored 作者: Olivier Delalleau's avatar Olivier Delalleau

PEP8

上级 b6470d61
......@@ -134,9 +134,9 @@ for i in xrange(750):
import os
fig = plt.figure()
ax = fig.add_subplot(111)
ax.plot(data, val)#, 'o-')
ax.plot(data, val_ultra)#, '-')
ax.plot(data, val_hard)#, '-')
ax.plot(data, val) # , 'o-')
ax.plot(data, val_ultra) # , '-')
ax.plot(data, val_hard) # , '-')
ax.grid(True)
ax.legend(("sigmoid", "ultra_fast", "hard"), "upper left")
fname = os.path.join(os.path.dirname(theano.__file__), '..',
......@@ -330,7 +330,8 @@ class ScalarSoftplus(scalar.UnaryScalarOp):
return (2,) + v
else:
return v
scalar_softplus = ScalarSoftplus(scalar.upgrade_to_float, name= 'scalar_softplus')
scalar_softplus = ScalarSoftplus(scalar.upgrade_to_float,
name='scalar_softplus')
softplus = elemwise.Elemwise(scalar_softplus, name='softplus')
pprint.assign(softplus, printing.FunctionPrinter('softplus'))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论