mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-07-17 08:28:07 -05:00
35 lines
890 B
Plaintext
35 lines
890 B
Plaintext
# solvers.SensitivitySolver { #mlsysim.solvers.SensitivitySolver }
|
|
|
|
```python
|
|
solvers.SensitivitySolver()
|
|
```
|
|
|
|
Identifies the binding constraint via numerical sensitivity analysis (Wall 21).
|
|
|
|
This solver computes numerical partial derivatives of performance
|
|
with respect to hardware parameters to identify the 'binding constraint.'
|
|
|
|
Literature Source:
|
|
1. Williams et al. (2009), "Roofline Model."
|
|
2. Ofenbeck et al. (2014), "Applying the Roofline Model."
|
|
|
|
## Methods
|
|
|
|
| Name | Description |
|
|
| --- | --- |
|
|
| [solve](#mlsysim.solvers.SensitivitySolver.solve) | Solves for sensitivities and identifies the binding constraint. |
|
|
|
|
### solve { #mlsysim.solvers.SensitivitySolver.solve }
|
|
|
|
```python
|
|
solvers.SensitivitySolver.solve(
|
|
model,
|
|
hardware,
|
|
precision='fp16',
|
|
perturbation_pct=10.0,
|
|
efficiency=0.5,
|
|
)
|
|
```
|
|
|
|
Solves for sensitivities and identifies the binding constraint.
|