提交 e29c2b19 authored 作者: Iban Harlouchet's avatar Iban Harlouchet

numpydoc for theano/tensor/xlogx.py

上级 15ba1e41
...@@ -7,6 +7,7 @@ from theano import scalar ...@@ -7,6 +7,7 @@ from theano import scalar
class XlogX(scalar.UnaryScalarOp): class XlogX(scalar.UnaryScalarOp):
""" """
Compute X * log(X), with special case 0 log(0) = 0. Compute X * log(X), with special case 0 log(0) = 0.
""" """
@staticmethod @staticmethod
def st_impl(x): def st_impl(x):
...@@ -39,6 +40,7 @@ xlogx = Elemwise(scalar_xlogx, name='xlogx') ...@@ -39,6 +40,7 @@ xlogx = Elemwise(scalar_xlogx, name='xlogx')
class XlogY0(scalar.BinaryScalarOp): class XlogY0(scalar.BinaryScalarOp):
""" """
Compute X * log(Y), with special case 0 log(0) = 0. Compute X * log(Y), with special case 0 log(0) = 0.
""" """
@staticmethod @staticmethod
def st_impl(x, y): def st_impl(x, y):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论