这是indexloc提供的服务,不要输入任何密码
Skip to content

[xla] ShapeUtil: optimize shape traversal #97381

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

Merged
merged 1 commit into from
Jul 23, 2025

Conversation

copybara-service[bot]
Copy link

[xla] ShapeUtil: optimize shape traversal

name                   cpu/op        cpu/op      vs base
BM_ShapeCount/0/0      4.556n ±  1%   4.545n ± 1%        ~ (p=0.365 n=20)
BM_ShapeCount/2/8      245.0n ±  1%   182.5n ± 0%  -25.51% (p=0.000 n=20)
BM_ShapeCount/4/8      23.54µ ± 10%   14.10µ ± 2%  -40.11% (p=0.000 n=20)
BM_ShapeCount/1/1000   2.947µ ±  1%   2.285µ ± 1%  -22.45% (p=0.000 n=20)
geomean                527.5n         404.3n       -23.36%

name                   time/op       time/op     vs base
BM_ShapeCount/0/0      4.566n ±  0%   4.554n ± 1%        ~ (p=0.365 n=20)
BM_ShapeCount/2/8      245.5n ±  1%   183.0n ± 0%  -25.48% (p=0.000 n=20)
BM_ShapeCount/4/8      23.61µ ± 10%   14.14µ ± 1%  -40.11% (p=0.000 n=20)
BM_ShapeCount/1/1000   2.954µ ±  1%   2.291µ ± 0%  -22.46% (p=0.000 n=20)
geomean                528.8n         405.3n       -23.35%

@copybara-service copybara-service bot force-pushed the exported_pr_786017357 branch 3 times, most recently from a02d107 to 86ebe87 Compare July 23, 2025 05:10
```
name                   cpu/op        cpu/op      vs base
BM_ShapeCount/0/0      4.556n ±  1%   4.545n ± 1%        ~ (p=0.365 n=20)
BM_ShapeCount/2/8      245.0n ±  1%   182.5n ± 0%  -25.51% (p=0.000 n=20)
BM_ShapeCount/4/8      23.54µ ± 10%   14.10µ ± 2%  -40.11% (p=0.000 n=20)
BM_ShapeCount/1/1000   2.947µ ±  1%   2.285µ ± 1%  -22.45% (p=0.000 n=20)
geomean                527.5n         404.3n       -23.36%

name                   time/op       time/op     vs base
BM_ShapeCount/0/0      4.566n ±  0%   4.554n ± 1%        ~ (p=0.365 n=20)
BM_ShapeCount/2/8      245.5n ±  1%   183.0n ± 0%  -25.48% (p=0.000 n=20)
BM_ShapeCount/4/8      23.61µ ± 10%   14.14µ ± 1%  -40.11% (p=0.000 n=20)
BM_ShapeCount/1/1000   2.954µ ±  1%   2.291µ ± 0%  -22.46% (p=0.000 n=20)
geomean                528.8n         405.3n       -23.35%
```

PiperOrigin-RevId: 786142617
@copybara-service copybara-service bot force-pushed the exported_pr_786017357 branch from 86ebe87 to 4b94703 Compare July 23, 2025 06:09
@copybara-service copybara-service bot merged commit 4b94703 into master Jul 23, 2025
@copybara-service copybara-service bot deleted the exported_pr_786017357 branch July 23, 2025 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant