未验证 提交 1ab1b092 编写于 作者: P peterzhang2029 提交者: GitHub

Merge pull request #5875 from peterzhang2029/refine_op_doc

Fix latex syntax in  bilinear tensor product operator comment.
...@@ -77,11 +77,19 @@ class BilinearTensorProductOpMaker : public framework::OpProtoAndCheckerMaker { ...@@ -77,11 +77,19 @@ class BilinearTensorProductOpMaker : public framework::OpProtoAndCheckerMaker {
AddOutput("Out", "The output of bilinear_tensor_product operator."); AddOutput("Out", "The output of bilinear_tensor_product operator.");
AddComment(R"DOC( AddComment(R"DOC(
Bilinear Tensor Product operator. Bilinear Tensor Product operator.
Given input X and Y, a 3D tensor weight, and bias. Each column of the Given input X and Y, a 3D tensor Weight and a Bias. Each column of the
output is computed by one slice i = 1, . . . , k of the tensor: Output is computed by one slice $i = 1, . . . , k$ of the tensor:
M = (X W_i) \cdot Y $$
Out_i = \sum_i {M_i} + Bias_i M = (X W_i) * Y \\
Out_i = \sum_j {M_j} + Bias_i
$$
Where $W_i$ is the $i$-th slice of Input(Weight);
$M_j$ is the $j$-th column of $M$;
$Out_i$ is the $i$-th column of Output(Out);
$Bias_i$ is a column vector, each element of it is equal to
the $i$-th element of $Bias$;
)DOC"); )DOC");
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册