added examples for element_times()

This commit is contained in:
William Darling 2016-05-03 15:42:26 +02:00
Родитель 26f5a43917
Коммит eb6f6a44d9
1 изменённых файлов: 9 добавлений и 1 удалений

Просмотреть файл

@ -154,7 +154,15 @@ def element_times(left, right, name=None):
Element-wise multiplication operation. The output of this operation is the
element-wise product of the two input tensors. It supports broadcasting. In
case of scalars its backward pass to left propagates right
times the received gradient and vice versa.
times the received gradient and vice versa.
Example:
>>> C.eval(C.element_times([1., 1., 1., 1.], [0.5, 0.25, 0.125, 0.]))
[array([[ 0.5 , 0.25 , 0.125, 0. ]])]
>>> C.eval(C.element_times([5., 10., 15., 30.], [2.]))
[array([[ 10., 20., 30., 60.]])]
Args:
left: left side tensor
right: right side tensor