CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 15:54:46 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/facebookresearch/pytorch3d.git
etag: W/"175c3a5ec9e4a4a5d9bf5131ab20020f"
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=ZzvvHQ9g6OvVfKu4b24lSHGYIOjWbBXoaBcsesuqVJeovAO2fnTzpHurNcIYNNOQ8cu4yYLjB%2BWR%2BQy1kfu61kQHK0hgQNDE%2FMGp0Ev2TTai9KfhmvXj%2FEStmzLF%2Bi1Kq4ifMm2STRqxdQKhplX2cPV%2FyXELr10QBBFE%2FokYZxHV6QQ1SZz6h81obuULv7UJSWiCKa5BJ7rVymwvcJ1Vkmf2bme4hDNQEjdcO2O3H8%2FTGEL%2FfQEW8HtqQwrZxkXuFMsNEM8%2B0lsW4Rc4W1kk%2Fw%3D%3D--NRl8YgOYK6GOzInB--l54CjKdRIYZiAAjKaEqT4g%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.2037045010.1753631685; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 15:54:45 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 15:54:45 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: C1EA:22FFCB:1BC79E:231FFB:68864BC5
Fix dtype propagation (#1141) · facebookresearch/pytorch3d@b602edc · GitHub
Copy file name to clipboardExpand all lines: pytorch3d/transforms/transform3d.py
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit b602edc
Fix dtype propagation (#1141)
Summary:
Previously, dtypes were not propagated correctly in composed transforms, resulting in errors when different dtypes were mixed. Even specifying a dtype in the constructor does not fix this. Neither does specifying the dtype for each composition function invocation (e.g. as a `kwarg` in `rotate_axis_angle`).
With the change, I also had to modify the default dtype of `RotateAxisAngle`, which was `torch.float64`; it is now `torch.float32` like for all other transforms. This was required because the fix in propagation broke some tests due to dtype mismatches.
This change in default dtype in turn broke two tests due to precision changes (calculations that were previously done in `torch.float64` were now done in `torch.float32`), so I changed the precision tolerances to be less strict. I chose the lowest power of ten that passed the tests here.
Pull Request resolved: #1141
Reviewed By: patricklabatut
Differential Revision: D35192970
Pulled By: bottler
fbshipit-source-id: ba0293e8b3595dfc94b3cf8048e50b7a5e5ed7cf1 parent 21262e3 commit b602edcCopy full SHA for b602edc
File tree
Expand file treeCollapse file tree
2 files changed
+53
-15
lines changedFilter options
- pytorch3d/transforms
- tests
Expand file treeCollapse file tree
2 files changed
+53
-15
lines changedpytorch3d/transforms/transform3d.py
Copy file name to clipboardExpand all lines: pytorch3d/transforms/transform3d.py+20-12Lines changed: 20 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
390 | 390 |
| |
391 | 391 |
| |
392 | 392 |
| |
393 |
| - | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
394 | 396 |
| |
395 | 397 |
| |
396 |
| - | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
397 | 401 |
| |
398 | 402 |
| |
399 |
| - | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
400 | 406 |
| |
401 | 407 |
| |
402 |
| - | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
403 | 411 |
| |
404 | 412 |
| |
405 | 413 |
| |
| |||
488 | 496 |
| |
489 | 497 |
| |
490 | 498 |
| |
491 |
| - | |
| 499 | + | |
492 | 500 |
| |
493 | 501 |
| |
494 | 502 |
| |
| |||
532 | 540 |
| |
533 | 541 |
| |
534 | 542 |
| |
535 |
| - | |
| 543 | + | |
536 | 544 |
| |
537 | 545 |
| |
538 | 546 |
| |
| |||
571 | 579 |
| |
572 | 580 |
| |
573 | 581 |
| |
574 |
| - | |
| 582 | + | |
575 | 583 |
| |
576 | 584 |
| |
577 | 585 |
| |
| |||
598 | 606 |
| |
599 | 607 |
| |
600 | 608 |
| |
601 |
| - | |
| 609 | + | |
602 | 610 |
| |
603 | 611 |
| |
604 | 612 |
| |
| |||
629 | 637 |
| |
630 | 638 |
| |
631 | 639 |
| |
632 |
| - | |
| 640 | + | |
633 | 641 |
| |
634 | 642 |
| |
635 | 643 |
| |
| |||
646 | 654 |
| |
647 | 655 |
| |
648 | 656 |
| |
649 |
| - | |
650 |
| - | |
| 657 | + | |
| 658 | + | |
651 | 659 |
| |
652 | 660 |
| |
653 | 661 |
| |
| |||
696 | 704 |
| |
697 | 705 |
| |
698 | 706 |
| |
699 |
| - | |
| 707 | + | |
700 | 708 |
| |
701 | 709 |
| |
702 | 710 |
| |
|
+33-3Lines changed: 33 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
87 | 87 |
| |
88 | 88 |
| |
89 | 89 |
| |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
90 | 120 |
| |
91 | 121 |
| |
92 | 122 |
| |
| |||
219 | 249 |
| |
220 | 250 |
| |
221 | 251 |
| |
222 |
| - | |
223 |
| - | |
| 252 | + | |
| 253 | + | |
224 | 254 |
| |
225 | 255 |
| |
226 | 256 |
| |
| |||
951 | 981 |
| |
952 | 982 |
| |
953 | 983 |
| |
954 |
| - | |
| 984 | + | |
955 | 985 |
| |
956 | 986 |
| |
957 | 987 |
| |
|
You can’t perform that action at this time.
0 commit comments