Repository navigation
FIX allow Deep4 explicit final_conv_length without n_times - #1214
bruAristimunha merged 5 commits into
Conversation
|
Exact-head validation is green on |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1214 +/- ##
==========================================
+ Coverage 87.84% 87.98% +0.14%
==========================================
Files 151 151
Lines 17602 17615 +13
==========================================
+ Hits 15462 15499 +37
+ Misses 2140 2116 -24 🚀 New features to boost your workflow:
|
bruAristimunha
left a comment
There was a problem hiding this comment.
Thanks. Reproduced on master, confirmed the one-variable fix restores explicit final_conv_length without n_times and leaves default configs unchanged (0.0 output diff). CI green.
Resolved docs/whats_new.rst by keeping both changelog entries.
bruAristimunha
left a comment
There was a problem hiding this comment.
Thanks. Reproduced on master, confirmed the one-variable fix restores explicit final_conv_length without n_times and leaves default configs unchanged (0.0 output diff). Tests green; the only red check is the Codecov upload (infra).
Resolved docs/whats_new.rst by keeping both changelog entries.
Resolved docs/whats_new.rst and test_models.py insertion conflicts by keeping both sides.
bruAristimunha
left a comment
There was a problem hiding this comment.
Thanks. Reproduced on master; the one-variable fix restores explicit final_conv_length without n_times, default configs unchanged (0.0 diff).
Summary
Deep4Netdocumentsn_timesas required only whenfinal_conv_length="auto", but the minimum-length scaling path currently comparesself.n_times < min_n_timesunconditionally. With an explicit final convolution length andn_times=None, construction therefore raises aTypeErrorbefore the model can be used.This PR keeps the existing auto-scaling behavior when
n_timesis known and skips that check when the input length is intentionally unspecified.Regression coverage
Adds a focused test that constructs
and verifies a normal forward pass on a runtime input tensor.
The change is independent of the CombinedConv/stride fixes: it only restores the documented explicit-head API contract.