-
Notifications
You must be signed in to change notification settings - Fork 875
1220 improve cnapi #509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1220 improve cnapi #509
Conversation
| 该函数在神经网络中建立一个全连接层。 它可以同时将多个tensor作为自己的输入,并为每个输入的tensor创立一个变量,称为“权”(weights),等价于一个从每个输入单元到每个输出单元的全连接权矩阵。FC层用每个tensor和它对应的权相乘得到输出tensor。如果有多个输入tensor,那么多个乘法运算将会加在一起得出最终结果。如果 ``bias_attr`` 非空,则会新创建一个偏向变量(bias variable),并把它加入到输出结果的运算中。最后,如果 ``act`` 非空,它也会加入最终输出的计算中。 | ||
| 该函数在神经网络中建立一个全连接层。 它可以同时将多个tensor( ``input`` 可使用多个tensor组成的一个list,详见参数说明)作为自己的输入,并为每个输入的tensor创立一个变量,称为“权”(weights),等价于一个从每个输入单元到每个输出单元的全连接权矩阵。FC层用每个tensor和它对应的权相乘得到输出tensor。如果有多个输入tensor,那么多个乘法运算将会加在一起得出最终结果。如果 ``bias_attr`` 非空,则会新创建一个偏向变量(bias variable),并把它加入到输出结果的运算中。最后,如果 ``act`` 非空,它也会加入最终输出的计算中。 | ||
| 这个过程可以通过如下公式表现: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我认为这个公式没有说得特别清楚:
(1)如果X是一个tensor的list,那么应该明确X是tensor列表,X_i 是列表中一个tensor; 对应的 W是权值列表,W_i 是列表中的一个权值(就是这里很疑惑,现在公式里W_i 与 X_i 做矩阵乘法,但是下面说W又是权值,而不是权值列表)
(2)如果X是一个tensor,这种情况下的公式是怎样的呢?或者说,介绍里说“可以同时是tensor列表”,那是否可以不是“tensor列表”,如果不是,公式是怎样的呢,我觉得需要说清楚
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已加icafe需求
|
is PaddlePaddle/Paddle#15681 fix the English version? @haowang101779990 |
Co-Authored-By: haowang101779990 <[email protected]>
* 1220 update cnapi * Apply suggestions from code review Co-Authored-By: haowang101779990 <[email protected]>
* fix layers. ==> fluid.layers. (#688) * fix data_reader_cn and dataset_cn (#685) * fix textual content * fix issue #682 3 3.2 * fix issues in conv * Fix io_cn (#597) * routine bug fix * update text info * fix io_cn all * 持久性变量=>长期变量 * 1220 improve cnapi (#509) * 1220 update cnapi * Apply suggestions from code review Co-Authored-By: haowang101779990 <[email protected]> * refine reader doc (#686) * update VisualDL README to add more details (#694) * improve save_load_variables cn (#689) * improve save_load_variables * Update save_load_variables.rst * fix typo of models (#698) * fix typo of models * fix en * Fix arguments according to 1.3 en + ceil,floor 翻译 +operator 翻译 (#695) * Fix arguments according to 1.3 en + ceil,floor trans +operator trans * fix LoDTensorArray spell * update_reading_data (#699) * add api_guides low_level backward parameter program_en (#696) * add api_guides low_level backward parameter program_en * Apply suggestions from code review Co-Authored-By: zy0531 <[email protected]> * Apply suggestions from code review Co-Authored-By: zy0531 <[email protected]> * Update backward_en.rst * Update parameter_en.rst * Update program_en.rst * Update doc/fluid/api_guides/low_level/program_en.rst
Follow-on update that I missed adding into PR 509.
Follow-on update that I missed adding into PR 509.
一些说明的优化