[tmva][sofie] Read the alpha attribute of Swish #24234
All Vouch review confidence checks passed
Residual risk 0.12 = Change Risk (0.31) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.31 · 112 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.289
Diff Size
diff_size
0.283
Real PR Conversation Timeline
1 comments
"Review active on #24234"
general
weight: 0.35
guitargeek
ParseSwishpreviously rejected non-default values of thealphaattribute with a runtime error becauseROperator_Swishhard-coded $\alpha = 1.0$.This PR:
1. Adds
fAlphatoROperator_Swishand writes it into the generated inference code with full float precision (std::numeric_limits<float>::max_digits10).2. Passes
attr_alphafromParseSwishtoROperator_Swish, removing the artificial rejection of non-default values.3. Adds input tensor type checking in
ParseSwish(guarding forFLOAT).4. Adds a test model with non-default $\alpha = 1.5$ in
generate_input_models.pyand a corresponding test case inTestCustomModelsFromONNX.Test Results
Verified locally on macOS (arm64):
TestCustomModelsFromONNX --gtest_filter="Swish": 3/3 passed (ONNX.Swish,ONNX.SwishWithAlpha,ONNX.HardSwish).TestSofieParser: 9/9 passed.TestSofieAlias: 4/4 passed.