René's URL Explorer Experiment


Title: ENH: pad: normalize `pad_width` on the host for torch by rgommers · Pull Request #832 · data-apis/array-api-extra · GitHub

Open Graph Title: ENH: pad: normalize `pad_width` on the host for torch by rgommers · Pull Request #832 · data-apis/array-api-extra

X Title: ENH: pad: normalize `pad_width` on the host for torch by rgommers · Pull Request #832 · data-apis/array-api-extra

Description: Extra array functions built on top of the array API standard. - ENH: pad: normalize `pad_width` on the host for torch by rgommers · Pull Request #832 · data-apis/array-api-extra

Open Graph Description: pad_width is host metadata (an int or (before, after) pairs), but the torch delegation branch normalized it by round-tripping through a tensor: xp.asarray(pad_width) places it on the default device...

X Description: pad_width is host metadata (an int or (before, after) pairs), but the torch delegation branch normalized it by round-tripping through a tensor: xp.asarray(pad_width) places it on the default device...

Opengraph URL: https://github.com/data-apis/array-api-extra/pull/832

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:e926f04a-2451-d446-8c04-b8bb00ddd223
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD67A:160FAB:3A963:5098C:6B005062
html-safe-nonce3bee8094832b7b7aa2081fe703064696546bc5520228f6a48a00945ded230960
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjdBOjE2MEZBQjozQTk2Mzo1MDk4Qzo2QjAwNTA2MiIsInZpc2l0b3JfaWQiOiI3MTUyMTI1NDY0NjA4MjY0MjkwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac1ecac87670514872b2a931666bbfbb30d61791048236dae1c95fa35a449099d6
hovercard-subject-tagpull_request:3994229111
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/data-apis/array-api-extra/832/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/c202f84d837a322689d4e3b206ef33eb8c0a5ff18018a202fbd7b9f2fc124aa4/data-apis/array-api-extra/pull/832
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c202f84d837a322689d4e3b206ef33eb8c0a5ff18018a202fbd7b9f2fc124aa4/data-apis/array-api-extra/pull/832
og:image:altpad_width is host metadata (an int or (before, after) pairs), but the torch delegation branch normalized it by round-tripping through a tensor: xp.asarray(pad_width) places it on the default device...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamergommers
hostnamegithub.com
expected-hostnamegithub.com
Nonef420f4996e6b1ff1ccd6d7683f8134f4b5f0f8a50124c210dbfe7490e5644abb
turbo-cache-controlno-cache
go-importgithub.com/data-apis/array-api-extra git https://github.com/data-apis/array-api-extra.git
octolytics-dimension-user_id65124399
octolytics-dimension-user_logindata-apis
octolytics-dimension-repository_id860307344
octolytics-dimension-repository_nwodata-apis/array-api-extra
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id860307344
octolytics-dimension-repository_network_root_nwodata-apis/array-api-extra
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release26e00df917aba0f128135dc073ea0c5e33a70d40
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/data-apis/array-api-extra/pull/832#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdata-apis%2Farray-api-extra%2Fpull%2F832
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdata-apis%2Farray-api-extra%2Fpull%2F832
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=data-apis%2Farray-api-extra
Reloadhttps://github.com/data-apis/array-api-extra/pull/832
Reloadhttps://github.com/data-apis/array-api-extra/pull/832
Reloadhttps://github.com/data-apis/array-api-extra/pull/832
data-apishttps://github.com/data-apis
array-api-extrahttps://github.com/data-apis/array-api-extra
Codehttps://github.com/data-apis/array-api-extra
Issues41 (41)https://github.com/data-apis/array-api-extra/issues
Pull requests14 (14)https://github.com/data-apis/array-api-extra/pulls
Discussionshttps://github.com/data-apis/array-api-extra/discussions
Actionshttps://github.com/data-apis/array-api-extra/actions
Security and qualityhttps://github.com/data-apis/array-api-extra/security
Insightshttps://github.com/data-apis/array-api-extra/insights
https://github.com/data-apis/array-api-extra
lucascolleyhttps://github.com/lucascolley
data-apis:mainhttps://github.com/data-apis/array-api-extra/tree/main
rgommers:pad-width-host-normalizationhttps://github.com/rgommers/array-api-extra/tree/pad-width-host-normalization
Conversationhttps://github.com/data-apis/array-api-extra/pull/832
Commits4 (4)https://github.com/data-apis/array-api-extra/pull/832/commits
Checkshttps://github.com/data-apis/array-api-extra/pull/832/checks
Files changedhttps://github.com/data-apis/array-api-extra/pull/832/files
ENH: pad: normalize pad_width on the host for torchhttps://github.com/data-apis/array-api-extra/pull/832#top
lucascolleyhttps://github.com/lucascolley
data-apis:mainhttps://github.com/data-apis/array-api-extra/tree/main
rgommers:pad-width-host-normalizationhttps://github.com/rgommers/array-api-extra/tree/pad-width-host-normalization
https://github.com/rgommers
rgommershttps://github.com/rgommers
Jul 5, 2026https://github.com/data-apis/array-api-extra/pull/832#issue-4813674494
Please reload this pagehttps://github.com/data-apis/array-api-extra/pull/832
https://github.com/rgommers
https://github.com/claude
ENH: pad: normalize pad_width on the host for torchhttps://github.com/data-apis/array-api-extra/pull/832/commits/18bd27961e4a7d3ec9b6db905e98a72d28b9a3a5
18bd279https://github.com/data-apis/array-api-extra/pull/832/commits/18bd27961e4a7d3ec9b6db905e98a72d28b9a3a5
https://github.com/rgommers
rgommershttps://github.com/rgommers
July 5, 2026 17:13https://github.com/data-apis/array-api-extra/pull/832#event-27577345732
https://github.com/lucascolley
lucascolleyhttps://github.com/lucascolley
Jul 5, 2026 https://github.com/data-apis/array-api-extra/pull/832#pullrequestreview-4631704595
View reviewed changes https://github.com/data-apis/array-api-extra/pull/832/files/18bd27961e4a7d3ec9b6db905e98a72d28b9a3a5
src/array_api_extra/_lib/_funcs.pyhttps://github.com/data-apis/array-api-extra/pull/832/files/18bd27961e4a7d3ec9b6db905e98a72d28b9a3a5#diff-0e872d3b026c963eb90d9601ddd3c56a55b39132ae605c6a5b11e4a55e0ab29c
lucascolleyhttps://github.com/lucascolley
Jul 5, 2026https://github.com/data-apis/array-api-extra/pull/832#discussion_r3525322868
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/data-apis/array-api-extra/pull/832
rgommershttps://github.com/rgommers
Jul 5, 2026https://github.com/data-apis/array-api-extra/pull/832#discussion_r3525358706
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/data-apis/array-api-extra/pull/832
lucascolleyhttps://github.com/lucascolley
Jul 5, 2026https://github.com/data-apis/array-api-extra/pull/832#discussion_r3525383073
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/data-apis/array-api-extra/pull/832
src/array_api_extra/_delegation.pyhttps://github.com/data-apis/array-api-extra/pull/832/files/18bd27961e4a7d3ec9b6db905e98a72d28b9a3a5#diff-8df205db38e430f27264bded1e25aed3f290448ede21c2971ef521e410ba02be
Please reload this pagehttps://github.com/data-apis/array-api-extra/pull/832
https://github.com/lucascolley
lucascolleyhttps://github.com/lucascolley
Jul 5, 2026https://github.com/data-apis/array-api-extra/pull/832#issuecomment-4886993410
Please reload this pagehttps://github.com/data-apis/array-api-extra/pull/832
https://github.com/rgommers
rgommershttps://github.com/rgommers
Jul 5, 2026https://github.com/data-apis/array-api-extra/pull/832#issuecomment-4887047729
Please reload this pagehttps://github.com/data-apis/array-api-extra/pull/832
https://github.com/rgommers
https://github.com/lucascolley
Update src/array_api_extra/_delegation.pyhttps://github.com/data-apis/array-api-extra/pull/832/commits/57d719cad25939b9a9f829130ae160aaf4bfbb38
57d719chttps://github.com/data-apis/array-api-extra/pull/832/commits/57d719cad25939b9a9f829130ae160aaf4bfbb38
https://github.com/lucascolley
lucascolleyhttps://github.com/lucascolley
Jul 5, 2026https://github.com/data-apis/array-api-extra/pull/832#issuecomment-4887052091
Please reload this pagehttps://github.com/data-apis/array-api-extra/pull/832
https://github.com/rgommers
rgommershttps://github.com/rgommers
Jul 5, 2026https://github.com/data-apis/array-api-extra/pull/832#issuecomment-4887059800
Please reload this pagehttps://github.com/data-apis/array-api-extra/pull/832
https://github.com/lucascolley
lucascolleyhttps://github.com/lucascolley
enhancement https://github.com/data-apis/array-api-extra/issues?q=state%3Aopen%20label%3Aenhancement
Jul 5, 2026https://github.com/data-apis/array-api-extra/pull/832#event-27578549617
https://github.com/lucascolley
lucascolleyhttps://github.com/lucascolley
0.11.1https://github.com/data-apis/array-api-extra/milestone/18
Jul 5, 2026https://github.com/data-apis/array-api-extra/pull/832#event-27578550219
https://github.com/rgommers
MAINT: move normalize_pad_width to _utils/_helpers.pyhttps://github.com/data-apis/array-api-extra/pull/832/commits/58404fb09601be0ab602547c1c6e8b9017aaf5b9
58404fbhttps://github.com/data-apis/array-api-extra/pull/832/commits/58404fb09601be0ab602547c1c6e8b9017aaf5b9
https://github.com/lucascolley
lucascolleyhttps://github.com/lucascolley
Jul 5, 2026 https://github.com/data-apis/array-api-extra/pull/832#pullrequestreview-4631818752
View reviewed changes https://github.com/data-apis/array-api-extra/pull/832/files/58404fb09601be0ab602547c1c6e8b9017aaf5b9
https://github.com/rgommers
rgommershttps://github.com/rgommers
Jul 5, 2026https://github.com/data-apis/array-api-extra/pull/832#issuecomment-4887245211
Please reload this pagehttps://github.com/data-apis/array-api-extra/pull/832
https://github.com/rgommers
fix issue in previous commit that the linter caughthttps://github.com/data-apis/array-api-extra/pull/832/commits/69e2b70474039ebe11957b6134d2220bc1492cd9
69e2b70https://github.com/data-apis/array-api-extra/pull/832/commits/69e2b70474039ebe11957b6134d2220bc1492cd9
https://github.com/lucascolley
lucascolleyhttps://github.com/lucascolley
Jul 5, 2026https://github.com/data-apis/array-api-extra/pull/832#issuecomment-4887557270
Please reload this pagehttps://github.com/data-apis/array-api-extra/pull/832
https://github.com/lucascolley
lucascolleyhttps://github.com/lucascolley
eb8ff5dhttps://github.com/data-apis/array-api-extra/commit/eb8ff5dc6ff906e97d6e065caf87cf31898f898a
Jul 5, 2026https://github.com/data-apis/array-api-extra/pull/832#event-27580588874
Please reload this pagehttps://github.com/data-apis/array-api-extra/pull/832
https://github.com/lucascolley
lucascolleyhttps://github.com/lucascolley
Jul 5, 2026https://github.com/data-apis/array-api-extra/pull/832#issuecomment-4887558645
Please reload this pagehttps://github.com/data-apis/array-api-extra/pull/832
https://github.com/rgommers
rgommershttps://github.com/rgommers
July 6, 2026 04:10https://github.com/data-apis/array-api-extra/pull/832#event-27587955841
https://github.co/hiddenchars
https://github.com/data-apis/array-api-extra/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdata-apis%2Farray-api-extra%2Fpull%2F832
https://github.com/lucascolley
lucascolley https://github.com/lucascolley
https://github.com/data-apis/array-api-extra/pull/832/files/58404fb09601be0ab602547c1c6e8b9017aaf5b9
Please reload this pagehttps://github.com/data-apis/array-api-extra/pull/832
enhancement https://github.com/data-apis/array-api-extra/issues?q=state%3Aopen%20label%3Aenhancement
0.11.1 https://github.com/data-apis/array-api-extra/milestone/18
Please reload this pagehttps://github.com/data-apis/array-api-extra/pull/832
https://github.com/rgommers
https://github.com/lucascolley
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.