提交 8b7446e0 authored 作者: Brandon T. Willard's avatar Brandon T. Willard 提交者: Brandon T. Willard

Fix some formatting in the Elemwise docstring

上级 dab6ea3a
...@@ -320,15 +320,16 @@ class Elemwise(OpenMPOp): ...@@ -320,15 +320,16 @@ class Elemwise(OpenMPOp):
Notes Notes
----- -----
| Elemwise(add) represents + on tensors (x + y) -``Elemwise(add)``: represents ``+`` on tensors ``x + y``
| Elemwise(add, {0 : 0}) represents the += operation (x += y) -``Elemwise(add, {0 : 0})``: represents the ``+=`` operation ``x += y``
| Elemwise(add, {0 : 1}) represents += on the second argument (y += x) -``Elemwise(add, {0 : 1})``: represents ``+=`` on the second argument ``y += x``
| Elemwise(mul)(rand(10, 5), rand(1, 5)) the second input is completed \ -``Elemwise(mul)(np.random.random((10, 5)), np.random.random((1, 5)))``:
along the first dimension to match the first input the second input is completed along the first dimension to match the first input
| Elemwise(true_div)(rand(10, 5), rand(10, 1)) same but along the \ -``Elemwise(true_div)(np.random.random(10, 5), np.random.random(10, 1))``: same but along the
second dimension second dimension
| Elemwise(int_div)(rand(1, 5), rand(10, 1)) the output has size (10, 5) -``Elemwise(int_div)(np.random.random((1, 5)), np.random.random((10, 1)))``:
| Elemwise(log)(rand(3, 4, 5)) the output has size ``(10, 5)``.
-``Elemwise(log)(np.random.random((3, 4, 5)))``
""" """
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论