提交 1a308f47 authored 作者: fsavard's avatar fsavard

Removed old code

上级 61dd9af7
...@@ -1178,23 +1178,6 @@ class Prod(CAReduce): ...@@ -1178,23 +1178,6 @@ class Prod(CAReduce):
return [Elemwise(scalar.true_div)(p_gz, x)] return [Elemwise(scalar.true_div)(p_gz, x)]
# fill a matrix with the same shape as x by broadcasting
# values taken from gz, which has the same shape as the output
# of prod().
#gz_filled_x = Elemwise(scalar.second)(x,
# DimShuffle(gz.type.broadcastable, new_dims)(gz))
# do the same with the output of prod, by broadcasting along
# axises where the product was taken
#prod_out_filled_x = Elemwise(scalar.second)(x,
# DimShuffle(prod_out.type.broadcastable,
# new_dims)(prod_out))
#return [theano.tensor.mul(gz_filled_x,
# theano.tensor.true_div(prod_out_filled_x, x))]
#else:
# raise NotImplementedError('Will be implemented shortly')
def __str__(self): def __str__(self):
if self.axis is None: if self.axis is None:
return "Prod" return "Prod"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论