-
Notifications
You must be signed in to change notification settings - Fork 5.9k
fix en docs of paddle.vision.transforms.Normalize, paddle.vision.models.alexnet, paddle.vision.models.mobilenet, ops apis #42380
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
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
| Returns: | ||
| the model of alexnet | ||
| Return Type: |
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.
Return Type: 删掉
|
Sorry to inform you that a67eb00's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
| .. code-block:: python | ||
| :name: code-example | ||
| import numpy as np |
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.
- 示例代码中的输入数据需要换成paddle的方式
- 参数需要注意是否optional
| num_classes (int): output dim of last fc layer. If num_classes <=0, last fc layer | ||
| will not be defined. Default: 1000. | ||
| with_pool (bool): use pool before the last fc layer or not. Default: True. | ||
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.
这三个参数都是optional哦
| num_classes (int): output dim of last fc layer. If num_classes <=0, last fc layer | ||
| will not be defined. Default: 1000. | ||
| with_pool (bool): use pool before the last fc layer or not. Default: True. | ||
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.
这三个参数也都是optional哦
| num_classes (int): Output dim of last fc layer. If num_classes <=0, last fc layer | ||
| will not be defined. Default: 1000. | ||
| with_pool (bool): Use pool before the last three fc layer or not. Default: True. | ||
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.
后两个参数是optional哦
| AlexNet model | ||
| Args: | ||
| pretrained (bool): If True, returns a model pre-trained on ImageNet. Default: False. |
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.
- pretrained参数是optional哦
- 是不是缺了**kwargs
| .. code-block:: python | ||
| :name: code-example1 | ||
| import paddle |
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.
示例代码增加一些输出数据展示?
| Returns: | ||
| None | ||
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.
- spatial_scale是optional哦
- Returns:
None. 加个.
| Returns: | ||
| 4-D Tensor. The pooled ROIs with shape (num_rois, output_channels, pooled_h, pooled_w). | ||
| The output_channels equal to C / (pooled_h * pooled_w), where C is the channels of input. | ||
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.
spatial_scale是可选参数
| name(str, optional): For detailed information, please refer to : | ||
| ref:`api_guide_Name`. Usually name is no need to set and None by | ||
| default. | ||
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.
- 描述中去掉「This operator」
- 注意参数是否optional
- 句尾需要加
.
…ls.alexnet, paddle.vision.models.mobilenet, ops apis (PaddlePaddle#42380) * Normalize; test=document_fix * alexnet; test=document_fix * alexnet; test=document_fix * vgg; test=document_fix * mobilenetv2; test=document_fix * mobilenetv1; test=document_fix * alexnet; test=document_fix * PSRoIPool; test=document_fix * psroi_pool; test=document_fix * roi_align; test=document_fix * RoIAlign; test=document_fix * alexnet; test=document_fix * MobileNetV1; test=document_fix * mobilenetv2;test=document_fix * vgg; test=document_fix * psroi_pool;test=document_fix * ops; test=document_fix * Normalize;test=document_fix * normlize;test=document_fix * Update alexnet.py * for ci;test=document_fix * for ci;test=document_fix Co-authored-by: Ligoml <[email protected]>

PR types
Others
PR changes
Docs
Describe