CARVIEW |
Select Language
HTTP/2 200
date: Wed, 30 Jul 2025 10:21:54 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/"f566137c708604f4adc18df2a98baf66"
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=%2B5oDepVhtHjtyUxu62kgyl7KvmhBcWccZLrA8HNpT7TN6mx9iHk%2BHr6CUHgB91ypLPCA5J5s36aARZZyiFHGgPZg3wvHx3BFzqMAxKwr9R0zHmJHi4SRjQ8DVJGOCgzYL2SDgR1uagyd6iFzSI%2FYBLK47ehOeoVEYekVD68LcapUQl352oKEkwlfEgnzHC0QG8hETbbX0ncneoBAPHtxe1rQghydEEXLJwQTxvXTW1RSd69P%2BbHvQLiL%2Fbn1Hg%2BxSFiaKs9C5S6CbJPwwq3AeQ%3D%3D--7%2BlO9PquenTpdCyX--4uBRRmALO05kOkbPv0ZzoA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.661846426.1753870913; Path=/; Domain=github.com; Expires=Thu, 30 Jul 2026 10:21:53 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 30 Jul 2026 10:21:53 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: A3B6:348337:831E81:9EEA04:6889F241
【Complex op】add complex support for sin, cos, tan, tanh (#55380) · PaddlePaddle/Paddle@3bedec8 · GitHub
Copy file name to clipboardExpand all lines: paddle/phi/common/complex.h
Copy file name to clipboardExpand all lines: paddle/phi/kernels/cpu/activation_grad_kernel.cc
Copy file name to clipboardExpand all lines: paddle/phi/kernels/cpu/activation_kernel.cc
Copy file name to clipboardExpand all lines: paddle/phi/kernels/funcs/activation_functor.h
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit 3bedec8
authored
【Complex op】add complex support for sin, cos, tan, tanh (#55380)
* add complex dtype for tanh
* add test case
* support complex for sin, cos and tan
* support gpu
* fix error in cpu
* fix gpu error
* set check_prim to False only for complex type1 parent e2e0d29 commit 3bedec8Copy full SHA for 3bedec8
File tree
Expand file treeCollapse file tree
8 files changed
+390
-36
lines changedFilter options
- paddle/phi
- common
- kernels
- cpu
- funcs
- gpu
- python/paddle/tensor
- test/legacy_test
Expand file treeCollapse file tree
8 files changed
+390
-36
lines changedpaddle/phi/common/complex.h
Copy file name to clipboardExpand all lines: paddle/phi/common/complex.h+40Lines changed: 40 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
422 | 422 |
| |
423 | 423 |
| |
424 | 424 |
| |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
425 | 455 |
| |
426 | 456 |
| |
427 | 457 |
| |
| |||
432 | 462 |
| |
433 | 463 |
| |
434 | 464 |
| |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
435 | 475 |
| |
436 | 476 |
| |
437 | 477 |
| |
|
paddle/phi/kernels/cpu/activation_grad_kernel.cc
Copy file name to clipboardExpand all lines: paddle/phi/kernels/cpu/activation_grad_kernel.cc+42-11Lines changed: 42 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
255 | 255 |
| |
256 | 256 |
| |
257 | 257 |
| |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
258 | 268 |
| |
259 | 269 |
| |
260 | 270 |
| |
261 | 271 |
| |
262 |
| - | |
263 |
| - | |
264 |
| - | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
265 | 286 |
| |
266 | 287 |
| |
267 | 288 |
| |
| |||
270 | 291 |
| |
271 | 292 |
| |
272 | 293 |
| |
273 |
| - | |
| 294 | + | |
274 | 295 |
| |
275 | 296 |
| |
276 | 297 |
| |
| |||
290 | 311 |
| |
291 | 312 |
| |
292 | 313 |
| |
293 |
| - | |
294 |
| - | |
| 314 | + | |
| 315 | + | |
295 | 316 |
| |
296 | 317 |
| |
297 | 318 |
| |
| |||
308 | 329 |
| |
309 | 330 |
| |
310 | 331 |
| |
311 |
| - | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
312 | 335 |
| |
313 | 336 |
| |
314 | 337 |
| |
| |||
355 | 378 |
| |
356 | 379 |
| |
357 | 380 |
| |
358 |
| - | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
359 | 384 |
| |
360 | 385 |
| |
361 | 386 |
| |
| |||
365 | 390 |
| |
366 | 391 |
| |
367 | 392 |
| |
368 |
| - | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
369 | 396 |
| |
370 | 397 |
| |
371 | 398 |
| |
| |||
375 | 402 |
| |
376 | 403 |
| |
377 | 404 |
| |
378 |
| - | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
379 | 408 |
| |
380 | 409 |
| |
381 | 410 |
| |
| |||
385 | 414 |
| |
386 | 415 |
| |
387 | 416 |
| |
388 |
| - | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
389 | 420 |
| |
390 | 421 |
| |
391 | 422 |
| |
|
paddle/phi/kernels/cpu/activation_kernel.cc
Copy file name to clipboardExpand all lines: paddle/phi/kernels/cpu/activation_kernel.cc+14-4Lines changed: 14 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
166 | 166 |
| |
167 | 167 |
| |
168 | 168 |
| |
169 |
| - | |
170 |
| - | |
171 |
| - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
172 | 182 |
| |
173 | 183 |
| |
174 | 184 |
| |
| |||
177 | 187 |
| |
178 | 188 |
| |
179 | 189 |
| |
180 |
| - | |
| 190 | + | |
181 | 191 |
| |
182 | 192 |
| |
183 | 193 |
| |
|
paddle/phi/kernels/funcs/activation_functor.h
Copy file name to clipboardExpand all lines: paddle/phi/kernels/funcs/activation_functor.h+137Lines changed: 137 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
96 | 96 |
| |
97 | 97 |
| |
98 | 98 |
| |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
99 | 110 |
| |
100 | 111 |
| |
101 | 112 |
| |
| |||
111 | 122 |
| |
112 | 123 |
| |
113 | 124 |
| |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
114 | 140 |
| |
115 | 141 |
| |
116 | 142 |
| |
| |||
320 | 346 |
| |
321 | 347 |
| |
322 | 348 |
| |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
323 | 365 |
| |
324 | 366 |
| |
325 | 367 |
| |
| |||
584 | 626 |
| |
585 | 627 |
| |
586 | 628 |
| |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
587 | 650 |
| |
588 | 651 |
| |
589 | 652 |
| |
| |||
1217 | 1280 |
| |
1218 | 1281 |
| |
1219 | 1282 |
| |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
1220 | 1305 |
| |
1221 | 1306 |
| |
1222 | 1307 |
| |
| |||
2675 | 2760 |
| |
2676 | 2761 |
| |
2677 | 2762 |
| |
| 2763 | + | |
| 2764 | + | |
| 2765 | + | |
| 2766 | + | |
| 2767 | + | |
| 2768 | + | |
| 2769 | + | |
| 2770 | + | |
| 2771 | + | |
| 2772 | + | |
| 2773 | + | |
| 2774 | + | |
2678 | 2775 |
| |
2679 | 2776 |
| |
2680 | 2777 |
| |
| |||
2847 | 2944 |
| |
2848 | 2945 |
| |
2849 | 2946 |
| |
| 2947 | + | |
| 2948 | + | |
| 2949 | + | |
| 2950 | + | |
| 2951 | + | |
| 2952 | + | |
| 2953 | + | |
| 2954 | + | |
| 2955 | + | |
| 2956 | + | |
| 2957 | + | |
| 2958 | + | |
2850 | 2959 |
| |
2851 | 2960 |
| |
2852 | 2961 |
| |
| |||
2873 | 2982 |
| |
2874 | 2983 |
| |
2875 | 2984 |
| |
| 2985 | + | |
| 2986 | + | |
| 2987 | + | |
| 2988 | + | |
| 2989 | + | |
| 2990 | + | |
| 2991 | + | |
| 2992 | + | |
| 2993 | + | |
| 2994 | + | |
| 2995 | + | |
| 2996 | + | |
2876 | 2997 |
| |
2877 | 2998 |
| |
2878 | 2999 |
| |
| |||
3250 | 3371 |
| |
3251 | 3372 |
| |
3252 | 3373 |
| |
| 3374 | + | |
| 3375 | + | |
| 3376 | + | |
| 3377 | + | |
| 3378 | + | |
| 3379 | + | |
| 3380 | + | |
| 3381 | + | |
| 3382 | + | |
| 3383 | + | |
| 3384 | + | |
| 3385 | + | |
| 3386 | + | |
| 3387 | + | |
| 3388 | + | |
| 3389 | + | |
3253 | 3390 |
| |
3254 | 3391 |
| |
3255 | 3392 |
| |
|
You can’t perform that action at this time.
0 commit comments