HTTP/2 200
date: Sun, 27 Jul 2025 02:52:55 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/PaddlePaddle/Paddle.git
etag: W/"05710becffe5a6f035ac984fe5397146"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=v6KDqx5cwh2AWVzbHHu98WhXv%2FbyagNEpycBeXJQxLQJpfa3sC6%2BDlJ7Q%2FdYf38xN7oxr6y2qJ0gfmyy0HUsbRolRehWAJNWEDzr2CAznli1l5R0E42loVvbOcHW3Y5G6ADQebxceowbcbSoPP8Xqch4ZPArXp%2BArpAfbUAkzrK23%2BZBzbzLIb9Rmk69b9rehTMbuLaJRNURrROQz4sd1iQ9tOX42z7%2FkxJt%2FOVqCI00ZS1%2FaJpBDMZ84nuqZjD%2FF3J8uixI%2FFd3vpM9pbkCqw%3D%3D--4Bu9wW6yREgEsCSJ--NXSd%2BFWFdstX0rJJaIXUNw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1053349387.1753584775; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 02:52:55 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 02:52:55 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 9A7A:5FFA9:A3C9BF:D9657B:68859487
Fix shoudl should (#61175) · PaddlePaddle/Paddle@7f067f6 · GitHub
File tree Expand file tree Collapse file tree 8 files changed +27
-27
lines changed
paddle/phi/kernels/funcs/jit Expand file tree Collapse file tree 8 files changed +27
-27
lines changed Original file line number Diff line number Diff line change @@ -107,15 +107,15 @@ inline typename KernelTuple::func_type GetReferFunc() {
107
107
PADDLE_ENFORCE_NOT_NULL (
108
108
p,
109
109
phi::errors::InvalidArgument (" Get the reference code of kernel in CPU "
110
- " failed. The Refer kernel should exsit ." ));
110
+ " failed. The Refer kernel should exist ." ));
111
111
return p->GetFunc ();
112
112
}
113
113
114
114
// Return all Kernels that can be used
115
115
template <typename KernelTuple, typename PlaceType>
116
116
std::vector<const Kernel*> GetAllCandidateKernels (
117
117
const typename KernelTuple::attr_type& attr) {
118
- // the search order shoudl be jitcode > more > refer
118
+ // the search order should be jitcode > more > refer
119
119
std::vector<const Kernel*> res;
120
120
auto jitker = GetJitCode<KernelTuple, PlaceType>(attr);
121
121
if (jitker) {
Original file line number Diff line number Diff line change @@ -118,18 +118,18 @@ void EmbSeqPool(const T* table,
118
118
idx[i],
119
119
attr->table_height ,
120
120
phi::errors::InvalidArgument (
121
- " The idx shoud be lower than the attribute table_height of "
121
+ " The idx should be lower than the attribute table_height of "
122
122
" EmbSeqPool. But %dth of idx is %d and table_height is %d." ,
123
123
i,
124
124
idx[i],
125
125
attr->table_height ));
126
- PADDLE_ENFORCE_GE (
127
- idx[i] ,
128
- 0 ,
129
- phi::errors::InvalidArgument ( " The idx shoud be equal to or larger than "
130
- " the 0. But %dth of idx is %d." ,
131
- i,
132
- idx[i]));
126
+ PADDLE_ENFORCE_GE (idx[i],
127
+ 0 ,
128
+ phi::errors::InvalidArgument (
129
+ " The idx should be equal to or larger than "
130
+ " the 0. But %dth of idx is %d." ,
131
+ i,
132
+ idx[i]));
133
133
};
134
134
135
135
for (int64_t w = 0 ; w != attr->index_width ; ++w) {
Original file line number Diff line number Diff line change @@ -418,18 +418,18 @@ void EmbSeqPool(const T* table,
418
418
idx[i],
419
419
attr->table_height ,
420
420
phi::errors::InvalidArgument (
421
- " The idx shoud be lower than the attribute table_height of "
421
+ " The idx should be lower than the attribute table_height of "
422
422
" EmbSeqPool. But %dth of idx is %d and table_height is %d." ,
423
423
i,
424
424
idx[i],
425
425
attr->table_height ));
426
- PADDLE_ENFORCE_GE (
427
- idx[i] ,
428
- 0 ,
429
- phi::errors::InvalidArgument ( " The idx shoud be equal to or larger than "
430
- " the 0. But %dth of idx is %d." ,
431
- i,
432
- idx[i]));
426
+ PADDLE_ENFORCE_GE (idx[i],
427
+ 0 ,
428
+ phi::errors::InvalidArgument (
429
+ " The idx should be equal to or larger than "
430
+ " the 0. But %dth of idx is %d." ,
431
+ i,
432
+ idx[i]));
433
433
};
434
434
435
435
for (int64_t w = 0 ; w != attr->index_width ; ++w) {
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ class Metric(metaclass=abc.ABCMeta):
77
77
:code:`pred` and :code:`label` in :code:`compute`.
78
78
For examples, prediction results contains 10 classes, while :code:`pred`
79
79
shape is [N, 10], :code:`label` shape is [N, 1], N is mini-batch size,
80
- and we only need to calculate accurary of top-1 and top-5, we could
80
+ and we only need to calculate accuracy of top-1 and top-5, we could
81
81
calculate the correct prediction matrix of the top-5 scores of the
82
82
prediction of each sample like follows, while the correct prediction
83
83
matrix shape is [N, 5].
@@ -160,7 +160,7 @@ def name(self):
160
160
161
161
def compute (self , * args ):
162
162
"""
163
- This API is advanced usage to accelerate metric calculating, calulations
163
+ This API is advanced usage to accelerate metric calculating, calculations
164
164
from outputs of model to the states which should be updated by Metric can
165
165
be defined here, where Paddle OPs is also supported. Outputs of this API
166
166
will be the inputs of "Metric.update".
Original file line number Diff line number Diff line change @@ -392,7 +392,7 @@ class ClipGradByValue(ClipGradBase):
392
392
393
393
Note:
394
394
``need_clip`` of ``ClipGradByValue`` HAS BEEN DEPRECATED since 2.0.
395
- Please use ``need_clip`` in ``ParamAttr`` to speficiy the clip scope.
395
+ Please use ``need_clip`` in ``ParamAttr`` to specify the clip scope.
396
396
397
397
Args:
398
398
max (float): The maximum value to clip by.
@@ -499,7 +499,7 @@ class ClipGradByNorm(ClipGradBase):
499
499
500
500
Note:
501
501
``need_clip`` of ``ClipGradByNorm`` HAS BEEN DEPRECATED since 2.0.
502
- Please use ``need_clip`` in ``ParamAttr`` to speficiy the clip scope.
502
+ Please use ``need_clip`` in ``ParamAttr`` to specify the clip scope.
503
503
504
504
Args:
505
505
clip_norm(float): The maximum norm value.
@@ -630,7 +630,7 @@ class ClipGradByGlobalNorm(ClipGradBase):
630
630
631
631
Note:
632
632
``need_clip`` of ``ClipGradyGlobalNorm`` HAS BEEN DEPRECATED since 2.0.
633
- Please use ``need_clip`` in ``ParamAttr`` to speficiy the clip scope.
633
+ Please use ``need_clip`` in ``ParamAttr`` to specify the clip scope.
634
634
635
635
Args:
636
636
clip_norm (float): The maximum norm value.
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ def quantize(self, model: Layer, inplace=False):
118
118
_model .eval ()
119
119
assert (
120
120
not model .training
121
- ), "Post-Training Quantization shoud not work on training models. Please set evaluation mode by model.eval()."
121
+ ), "Post-Training Quantization should not work on training models. Please set evaluation mode by model.eval()."
122
122
self ._config ._specify (_model )
123
123
self ._convert_to_quant_layers (_model , self ._config )
124
124
self ._insert_activation_observers (_model , self ._config )
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ def quantize(self, model: Layer, inplace=False):
110
110
"""
111
111
assert (
112
112
model .training
113
- ), "Quantization-Aware Training shoud work on training models. Please set training mode by model.train()."
113
+ ), "Quantization-Aware Training should work on training models. Please set training mode by model.train()."
114
114
_model = model if inplace else copy .deepcopy (model )
115
115
self ._config ._specify (_model )
116
116
self ._convert_to_quant_layers (_model , self ._config )
Original file line number Diff line number Diff line change @@ -826,7 +826,7 @@ def deform_conv2d(
826
826
dilation_H = dilation_W = dilation. Default: 1.
827
827
deformable_groups (int): The number of deformable group partitions.
828
828
Default: 1.
829
- groups (int, optonal ): The groups number of the deformable conv layer. According to
829
+ groups (int, optional ): The groups number of the deformable conv layer. According to
830
830
grouped convolution in Alex Krizhevsky's Deep CNN paper: when group=2,
831
831
the first half of the filters is only connected to the first half
832
832
of the input channels, while the second half of the filters is only
@@ -2255,7 +2255,7 @@ def matrix_nms(
2255
2255
than score_threshold (if provided), then the top k candidate is selected if
2256
2256
nms_top_k is larger than -1. Score of the remaining candidate are then
2257
2257
decayed according to the Matrix NMS scheme.
2258
- Aftern NMS step, at most keep_top_k number of total bboxes are to be kept
2258
+ After NMS step, at most keep_top_k number of total bboxes are to be kept
2259
2259
per image if keep_top_k is larger than -1.
2260
2260
2261
2261
Args:
You can’t perform that action at this time.
0 commit comments