-
Notifications
You must be signed in to change notification settings - Fork 19.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add depthconv_conv2d
tests
#9225
Conversation
The results are:
|
Maybe we should just have a backend test for it? That could be useful if other backends start implementing |
I agree @fchollet. But currently, the "backend_test.py" examines a backend function with an assertion among results from individual backends. In other words, the backend functions, implemented in only a single backend, are not included in the "backend_test.py". For example, neither |
I think we should be free to add backend-specific test functions in |
I agree @fchollet. I wrote a backend test to check functionality of |
|
||
@pytest.mark.skipif(K.backend() != 'tensorflow', reason='Requires TF backend') | ||
@keras_test | ||
def test_depthwise_conv_2d(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need this test at all? Shouldn't coverage be achieved in the mobilenet
tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fchollet as you commented, there are redundant tests between backend tests and layer tests. I just wrote the both to fit the current testing format, but now a test_depthwise_conv_2d
in layer tests has been removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* 'master' of github.com:fchollet/keras: (57 commits) Minor README edit Speed up Travis tests (keras-team#9386) fix typo (keras-team#9391) Fix style issue in docstring Prepare 2.1.4 release. Fix activity regularizer + model composition test Corrected copyright years (keras-team#9375) Change default interpolation from nearest to bilinear. (keras-team#8849) a capsule cnn on cifar-10 (keras-team#9193) Enable us to use sklearn to do cv for functional api (keras-team#9320) Add support for stateful metrics. (keras-team#9253) The type of list keys was float (keras-team#9324) Fix mnist sklearn wrapper example (keras-team#9317) keras-team#9287 Fix most of the file-handle resource leaks. (keras-team#9309) Pass current learning rate to schedule() in LearningRateScheduler (keras-team#8865) Simplify with from six.moves import input (keras-team#9216) fixed RemoteMonitor: Json to handle np.float32 and np.int32 types (keras-team#9261) Update tweet length from 140 to 280 in docs Add `depthconv_conv2d` tests (keras-team#9225) Remove `force` option in progbar ...
This PR adds
depthconv_conv2d
tests by immigrating existing codes from "applications_test.py" to "convolutional_test.py". As the "application_test.py" begins to run conditionally, regular tests can not hitdepthconv_conv2d
(lines 3503-3522 in keras/backend/tensorflow_backend.py, see one of the recent builds).