-
Notifications
You must be signed in to change notification settings - Fork 724
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
Add sparse api chinese doc #5362
Conversation
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-5362.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
704b496
to
e8bce70
Compare
" :ref:`paddle.incubate.sparse.nn.Relu` ", "激活函数" | ||
" :ref:`paddle.incubate.sparse.nn.functional.conv3d ` ", "三维卷积函数" | ||
" :ref:`paddle.incubate.sparse.nn.functional.subm_conv3d ` ", "三维的 submanifold 卷积函数" | ||
" :ref:`paddle.incubate.sparse.nn.functional.max_pool3d ` ", "三维最大池化层" |
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.
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.
这5个文档的PR后面开活会提交,这里只提交一个模板
.. csv-table:: | ||
:header: "API 名称", "API 功能" | ||
|
||
" :ref:`paddle.incubate.sparse.nn.ReLU <cn_api_paddle_incubate_sparse_nn_ReLU>` ", "激活层" |
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.
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.
同上
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.
好的,因为链接现在失效的,所以如果现在合入,后期还是需再修改的。 还是等待有绝对链接再合入,OK么?
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.
好的,因为链接现在失效的,所以如果现在合入,后期还是需再修改的。 还是等待有绝对链接再合入,OK么?
已经删掉了,还是不要被阻塞了
" :ref:`paddle.incubate.sparse.multiply <cn_api_paddle_incubate_sparse_multiply>` ", "对稀疏 Tensor 逐元素相乘" | ||
" :ref:`paddle.incubate.sparse.divide <cn_api_paddle_incubate_sparse_divide>` ", "对稀疏 Tensor 逐元素相除" | ||
" :ref:`paddle.incubate.sparse.transpose <cn_api_paddle_incubate_sparse_transpose>` ", "对稀疏 Tensor 根据 perm 进行数据重排" | ||
" :ref:`paddle.incubate.sparse.coalesce ` ", "对 SparseCooTensor 进行排序与合并操作" |
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.
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.
同上,这几个已删除
input[SparseCsrTensor] + x[SparseCsrTensor] @ y[SparseCsrTensor] -> out[SparseCsrTensor] | ||
input[DenseTensor] + x[SparseCsrTensor] @ y[DenseTensor] -> out[DenseTensor] | ||
input[SparseCooTensor] + x[SparseCooTensor] @ y[SparseCooTensor] -> out[SparseCooTensor] | ||
input[DenseTensor] + x[SparseCooTensor] @ y[DenseTensor] -> out[DenseTensor] |
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.
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.
已修复
输入、输出的格式对应关系如下: | ||
|
||
.. note:: | ||
x[DenseTensor] @ y[DenseTensor] * mask[SparseCooTensor] -> out[SparseCooTensor] |
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.
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.
已修复
输入、输出的格式对应关系如下: | ||
|
||
.. note:: | ||
x[SparseCsrTensor] @ y[SparseCsrTensor] -> out[SparseCsrTensor] |
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.
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.
已修复
|
||
.. note:: | ||
x[SparseCsrTensor] @ vec[DenseTensor] -> out[DenseTensor] | ||
x[SparseCooTensor] @ vec[DenseTensor] -> out[DenseTensor] |
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.
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.
已修复
::::::::: | ||
- input:任意形状的 SparseTensor。 | ||
- output:和 input 具有相同形状和数据类型的 SparseTensor。 | ||
|
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)返回值?
2)class类的所有用法,需要写一下。参考别的class类
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)这个是class类的,没有返回值。
2)没有其他用法,看了下别的激活类class,也是这样的写法
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.
ok
代码示例 | ||
::::::::: | ||
|
||
COPY-FROM: paddle.incubate.sparse.transpose |
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.
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.
transpose是最新和入的,应该是所安装的whl包里还没有这个api的问题,这一行和其他写法是一样的
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.
写法是一样的,因为别的API 从英文文档和源代码拷贝成功了,不过transpose没有拷贝成功。
应该是transpose的英文文档有CI没过。
这个示例代码是需要正确的,否则无法合入
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.
已经删除
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.
一些小问题,注意,链接+示例代码+返回值的问题属于红线,优先解决一下~ 辛苦了
e8bce70
to
98bc9c5
Compare
有问题地方都已经删掉了,目前没问题了,发版PR需要尽快合入 |
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.
LGTM
批量新增稀疏API的中文文档