Repository navigation
Fix deserialization of legacy .nir files - #143
Conversation
Jegp
left a comment
There was a problem hiding this comment.
I like the addition, and this should most definitely be merged. It worries me a little we didn't catch this before. Could we set up a unit test that tests that we can read legacy .nir files? We could just use the old ones from the paper or something similar.
|
I am not sure if making reset_v a default parameter wouldn't be a better solution. There was quite a bit of discussion about that in the original PR: #129 Is it worth breaking literally the whole ecosystem for this by making this a mandatory parameter? Especially if there is still discussion ongoing on how exactly to model this mechanism. And I guess rockpool, sinabs etc. will also be affected. |
|
@Jegp I’ve now added a small test to verify that the @fabio-innatera I think the concerns you're raising are very valid and made me revisit the approach. First of all, I think the implementation which is suggested by Jens in #138 seems like a solid long-term solution.
In the meantime I thought the introduction of |
|
This solution certainly works for my use-case. Reflecting a bit on this, I believe having a (relatively) stable file format is much more important than a stable API. At least right now, when the NIR library is still changing regularly, being too cautious with breaking changes might limit innovation and figuring out actual great solutions to specific problems. |
a145864 to
28d8106
Compare
|
What do you think now @fabio-innatera and @Jegp? I think this looks mergable now. (made some mistakes and had to force push several times.... 🙈) |
|
Small nitpick, otherwise looking good 👍 |
28d8106 to
de2c637
Compare
Jegp
left a comment
There was a problem hiding this comment.
This looks great, thank you @benkroehs.
I agree that a stable file format is absolutely critical. And, as you point out, Ben, this is an improvement compared to status quo. Let's merge this and continue the discussions on what to do with platform-specific parameters and default parameters/composability.
LGTM!
This PR fixes the broken import of .nir files which were created before #129, mentioned in #142.