Closed mys007 closed 5 years ago
Cool, what kind of tests do you suggest?
I think we should have a custom unet in the tests which overwrites _get_num_channels(self, depth)
with some corner cases, maybe a constant number of channels / only a single of channel, number of channels which decrease when we go down in the unet etc,
Using the side-output one could even check if the layers indeed return the right number of channels for a certain depth.
btw thanks for the PR, this was indeed some missing functionality
@mys007 If you think that these additional tests are a bit overkill, we could also merge now and extend the tests later
LGTM from my side.
Thanks a lot for the review. I will add the tests on Monday!
Tests have been added.
once traivs is done i'll merge it, thanks for the tests and the PR
This PR proposes to replace the hard-coded definition of the number of channels
2**depth
by function_get_num_channels()
which can be overridden in subclasses, e.g. asreturn list_of_widths[depth - 1]
. In addition,pre_conv_op_regularizer_factory
andpost_conv_op_regularizer_factory
are removed, as they seem unused.