Commit 4dbb05f
authored
[core] allow using initializer allocator for prepack (#26617)
### Description
This PR makes ORT to prefer initializer allocator when calling
`OpKernel::PrePack`.
If an EP does not register an initializer allocator (currently only
WebGPU does this), the behavior is kept unchanged.
### Motivation and Context
Helps to improve the memory usage when doing prepack.1 parent 607d5e4 commit 4dbb05f
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
588 | 588 | | |
589 | 589 | | |
590 | 590 | | |
591 | | - | |
| 591 | + | |
592 | 592 | | |
593 | 593 | | |
594 | 594 | | |
595 | 595 | | |
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
599 | | - | |
| 599 | + | |
600 | 600 | | |
601 | 601 | | |
602 | 602 | | |
| |||
0 commit comments