Commit 46d066e
committed
fix: guard retain_pinned_cpu_buffers by inspecting TE signature
Custom TE builds (e.g. v0.1.0+te2.9.0) may report >= 2.5.0 via the
+te version tag but lack the retain_pinned_cpu_buffers parameter in
get_cpu_offload_context. Use inspect.signature to check the actual
function before passing the kwarg.1 parent 0c3da71 commit 46d066e
1 file changed
Lines changed: 27 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2561 | 2561 | | |
2562 | 2562 | | |
2563 | 2563 | | |
2564 | | - | |
2565 | | - | |
2566 | | - | |
2567 | | - | |
2568 | | - | |
2569 | | - | |
2570 | | - | |
2571 | | - | |
2572 | | - | |
2573 | | - | |
| 2564 | + | |
| 2565 | + | |
| 2566 | + | |
| 2567 | + | |
| 2568 | + | |
| 2569 | + | |
| 2570 | + | |
| 2571 | + | |
| 2572 | + | |
| 2573 | + | |
| 2574 | + | |
| 2575 | + | |
| 2576 | + | |
| 2577 | + | |
| 2578 | + | |
| 2579 | + | |
| 2580 | + | |
| 2581 | + | |
| 2582 | + | |
| 2583 | + | |
| 2584 | + | |
| 2585 | + | |
| 2586 | + | |
| 2587 | + | |
| 2588 | + | |
| 2589 | + | |
| 2590 | + | |
2574 | 2591 | | |
2575 | 2592 | | |
2576 | 2593 | | |
| |||
0 commit comments