Skip to content
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

[CodeStyle][Typos][A-[21-30]] Fix typos (allctor,almostly,alog,Aread,Allways,alway,ane,adn,expaned,annotaions,annotaion,architecure,architecuture,aer) #69482

Closed
wants to merge 18 commits into from

Conversation

rich04lin
Copy link
Contributor

@rich04lin rich04lin commented Nov 18, 2024

PR Category

User Experience

PR Types

Devs

Description

Fix:

  • allctor
  • almostly
  • alog
  • Aread
  • Allways
  • alway
  • ane
  • adn
  • expaned,
  • annotaions
  • annotaion
  • architecure
  • architecuture

Undo:

  • anc是"ancestor"(祖先)的缩写
  • aer是无效单词

Copy link

paddle-bot bot commented Nov 18, 2024

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot paddle-bot bot added the contributor External developers label Nov 18, 2024
@SigureMo
Copy link
Member

标题不合规范 or PR 描述不按模板来,一律不予 review

cc @MrXnneHang

@MrXnneHang
Copy link
Contributor

@rich04lin rich04lin changed the title [CodeStyle][Typos]21,22,24 [CodeStyle][Typos] [ A - [21,22,24]] Fix typo Nov 19, 2024
@MrXnneHang
Copy link
Contributor

MrXnneHang commented Nov 19, 2024

image

@rich04lin rich04lin changed the title [CodeStyle][Typos] [ A - [21,22,24]] Fix typo [CodeStyle][Typos][A-[21,22],A-[24]] Fix typo (alloctor,almostly,Aread) Nov 19, 2024
@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Nov 19, 2024
@SigureMo SigureMo requested a review from Copilot November 19, 2024 04:44

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 3 out of 7 changed files in this pull request and generated no suggestions.

Files not reviewed (4)
  • paddle/cinn/operator_fusion/graph_transformer/search_algorithm.h: Language not supported
  • paddle/fluid/pybind/pybind.cc: Language not supported
  • test/cpp/fluid/platform/errors_test.cc: Language not supported
  • test/cpp/phi/kernels/test_gpu_timer.cu: Language not supported
@MrXnneHang
Copy link
Contributor

[CodeStyle][Typos][A-[21,22,24]]

你写成这样吧,我去改一下 FAQ 标题示例,我不太会写正则...

@rich04lin rich04lin changed the title [CodeStyle][Typos][A-[21,22],A-[24]] Fix typo (alloctor,almostly,Aread) [CodeStyle][Typos][A-[21-30]] Nov 19, 2024
@SigureMo
Copy link
Member

[CodeStyle][Typos][A-[21-30]]

标题就写这?知道自己在干什么么?知道的话在标题里说明下

@rich04lin
Copy link
Contributor Author

[代码样式][错别字][A-[21-30]]

标题就写这个?知道自己在么?知道的话在标题里说明下
[CodeStyle][Typos][A-[21,22,24]]
你写成这样吧,我去修改一下常见问题标题示例,我不太会写正则...他让我按这个对吗

@SigureMo
Copy link
Member

他让我按这个对吗

人家让你把前缀改成这个

@rich04lin rich04lin changed the title [CodeStyle][Typos][A-[21-30]] [CodeStyle][Typos][A-[21-30]] Fix typo (allctor,almostly,Aread,Allways,alog,ane,adn,expaned,annotaions,annotaion,architecure,architecuture,aer) Nov 19, 2024
@rich04lin rich04lin changed the title [CodeStyle][Typos][A-[21-30]] Fix typo (allctor,almostly,Aread,Allways,alog,ane,adn,expaned,annotaions,annotaion,architecure,architecuture,aer) [CodeStyle][Typos][A-[21-30]] Fix typo (allctor,almostly,alog,Aread,Allways,alway,ane,adn,expaned,annotaions,annotaion,architecure,architecuture,aer) Nov 19, 2024
Copy link
Member

@SigureMo SigureMo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

整体上下文理解能力还需要提升啊……

@@ -10,7 +10,7 @@ grad = "grad"
arange = "arange"
ot = 'ot'
pash = 'pash'

anc = 'anc'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

下面的空行加回来

@@ -138,8 +138,8 @@ struct SearchAlgorithm<ReverseTopoNodePairPattern,
template <typename Kind, typename GraphMatcher, typename GraphOperation>
void GraphTransformer(PatternGraph* graph) {
VLOG(4) << "Start GraphTransformer...";
auto alog = SearchAlgorithm<Kind, GraphMatcher, GraphOperation>(graph);
alog();
auto along = SearchAlgorithm<Kind, GraphMatcher, GraphOperation>(graph);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
auto along = SearchAlgorithm<Kind, GraphMatcher, GraphOperation>(graph);
auto algo = SearchAlgorithm<Kind, GraphMatcher, GraphOperation>(graph);

自己看上下文,这不是 SearchAlgorithm 返回一个 Algorithm 吗?

@@ -72,7 +72,7 @@ def _default_pruning(
# In sparse training, layer weight matrices is viewed sparse matrix A, so
# the math formula should be 'Act(WX + b)'. However, default formula in PaddlePaddle
# is 'Act(XW + b)'. For enabling SPMMA, weights and inputs should be transposed
# for computing, Act( (W^T X^T)^T + b). Therefore, we have to prune alog k dimension
# for computing, Act( (W^T X^T)^T + b). Therefore, we have to prune log k dimension
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# for computing, Act( (W^T X^T)^T + b). Therefore, we have to prune log k dimension
# for computing, Act( (W^T X^T)^T + b). Therefore, we have to prune along k dimension

从 71 行能看出来是 along

@@ -354,7 +354,7 @@ def __init__(
self._quantized_weight_var_name = set()
self._quantized_act_var_name = set()
self._weight_op_pairs = {}
# The vars for alog = KL or hist
# The vars for along = KL or hist
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# The vars for along = KL or hist
# The vars for algo = KL or hist

算法 KL

Comment on lines 89 to 91
Functor along0 = Along<4, 256, 1024>;
Functor along1 = Along<1, 256, 1024>;
Functor along2 = Along<1, 256, 8>;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Functor along0 = Along<4, 256, 1024>;
Functor along1 = Along<1, 256, 1024>;
Functor along2 = Along<1, 256, 8>;
Functor algo0 = Algo<4, 256, 1024>;
Functor algo1 = Algo<1, 256, 1024>;
Functor algo2 = Algo<1, 256, 8>;

算法算法算法,Along 是什么鬼?

@@ -31,7 +31,7 @@ def test_train(self):
self.check_reader(paddle.dataset.imikolov.train(WORD_DICT, n), n)

first_line = (
'aer banknote berlitz calloway centrust cluett fromstein '
'are banknote berlitz calloway centrust cluett fromstein '
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里不能修改,因为这里本来就不是有效词汇,需要将本文件在配置中 ignore 掉

参考 crate-ci/typos#316 (comment)

配置参考 https://github.com/crate-ci/typos/blob/master/docs/reference.md#config-fields

可用 files.ignore-files 配置项

@MrXnneHang 可以在 Q&A 里提及,这种本身就是使用一些 typos 的字面量,整个文件可以 ignore

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好。

Copy link
Member

@SigureMo SigureMo Nov 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aer[无效单词]

这个加到配置了吗?按文件加到配置

@SigureMo
Copy link
Member

CI 挂了,与修改相关,自己看下 CI 报错

…llways,alway,ane,adn,expaned,annotaions,annotaion,architecure,architecuture,aer)
…llways,alway,ane,adn,expaned,annotaions,annotaion,architecure,architecuture,aer)
…llways,alway,ane,adn,expaned,annotaions,annotaion,architecure,architecuture,aer)
Copy link
Member

@SigureMo SigureMo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

另外运行 typos 有一堆没修的

_typos.toml Outdated
@@ -10,6 +10,8 @@ grad = "grad"
arange = "arange"
ot = 'ot'
pash = 'pash'
anc = 'anc'
algo = "algo"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这是在干啥?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

人家有把 algo 识别成 typo 吗?没有加在这干什么?

…llways,alway,ane,adn,expaned,annotaions,annotaion,architecure,architecuture,aer)
…llways,alway,ane,adn,expaned,annotaions,annotaion,architecure,architecuture,aer)
.gitignore Outdated
@@ -112,3 +112,4 @@ paddle/phi/kernels/fusion/cutlass/conv2d/cutlass
paddle/phi/kernels/fusion/cutlass/gemm_epilogue/build
paddle/phi/kernels/fusion/cutlass/gemm_epilogue/cutlass
python/paddle/_typing/libs/**/*.pyi
*aer*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

恢复

_typos.toml 里加

[files]
extend-exclude = [
    "test/dataset/imikolov_test.py"
]

放在最上面

@MrXnneHang
Copy link
Contributor

MrXnneHang commented Nov 20, 2024

@rich04lin
你先等一等,应该需要等这个合入一下,可以先接其他的任务。

rich04lin and others added 7 commits November 20, 2024 13:49
…llways,alway,ane,adn,expaned,annotaions,annotaion,architecure,architecuture,aer)
…llways,alway,ane,adn,expaned,annotaions,annotaion,architecure,architecuture,aer)
…llways,alway,ane,adn,expaned,annotaions,annotaion,architecure,architecuture,aer)
…llways,alway,ane,adn,expaned,annotaions,annotaion,architecure,architecuture,aer)
…llways,alway,ane,adn,expaned,annotaions,annotaion,architecure,architecuture,aer)
SigureMo
SigureMo previously approved these changes Nov 20, 2024
Copy link
Member

@SigureMo SigureMo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

漏了一大堆,我都改了,你不用动了

@SigureMo SigureMo changed the title [CodeStyle][Typos][A-[21-30]] Fix typo (allctor,almostly,alog,Aread,Allways,alway,ane,adn,expaned,annotaions,annotaion,architecure,architecuture,aer) [CodeStyle][Typos][A-[21-30]] Fix typo (allctor,almostly,alog,Aread,Allways,alway,ane,adn,expaned,annotaions,annotaion,architecure,architecuture,aer) Nov 20, 2024
@SigureMo SigureMo changed the title [CodeStyle][Typos][A-[21-30]] Fix typo (allctor,almostly,alog,Aread,Allways,alway,ane,adn,expaned,annotaions,annotaion,architecure,architecuture,aer) [CodeStyle][Typos][A-[21-30]] Fix typos (allctor,almostly,alog,Aread,Allways,alway,ane,adn,expaned,annotaions,annotaion,architecure,architecuture,aer) Nov 20, 2024
@luotao1
Copy link
Contributor

luotao1 commented Nov 21, 2024

下次1个PR可以少领几个,更容易快速合入

@SigureMo
Copy link
Member

……不是说了不用动了吗?

@rich04lin
Copy link
Contributor Author

……不是说了不用动了吗?

对不起,我把其他单词修改提交到这里了,撤回了

@SigureMo
Copy link
Member

仅这个任务,全部修改完需要改动 21 个文件,我之前都改完了,你全都覆盖掉了

@rich04lin
Copy link
Contributor Author

仅这个任务,全部修改完需要改动 21 个文件,我之前都改完了,你全都覆盖掉了

啊对不起,那还能撤回修改吗

@SigureMo
Copy link
Member

啊对不起,那还能撤回修改吗

不能,因为你 force push 了

自己改回来吧,我不管了

@rich04lin rich04lin closed this by deleting the head repository Nov 22, 2024
@rich04lin
Copy link
Contributor Author

啊对不起,那还能撤回修改吗

不能,因为你 force push 了

自己改回来吧,我不管了

老师可以重新开一个issue吗,我重新写

@MrXnneHang
Copy link
Contributor

MrXnneHang commented Nov 22, 2024

你再新建一个分支然后重新做最后push上来再PR即可。
这次少接几个。
不过你的仓库的 develop 分支被污染了,我建议你删掉重新fork。
可以看FAQ。

@rich04lin
Copy link
Contributor Author

你再新建一个分支然后改完push上来再PR即可。 这次少接几个。 不过你的仓库的 develop 分支被污染了,我建议你删掉重新fork。 可以看FAQ。
重新fork了,我重新写,谢谢老师

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers HappyOpenSource 快乐开源活动issue与PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants