SINGA-290 Upgrade to Python 3 Fix the bug from unittest due to odd pading. Add future as runtime dependency.
Project: http://git-wip-us.apache.org/repos/asf/incubator-singa/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-singa/commit/f6b47771 Tree: http://git-wip-us.apache.org/repos/asf/incubator-singa/tree/f6b47771 Diff: http://git-wip-us.apache.org/repos/asf/incubator-singa/diff/f6b47771 Branch: refs/heads/master Commit: f6b4777118a20051faa33cdffdbdec91fb6cc625 Parents: bf121fd Author: Wei Wang <[email protected]> Authored: Mon Aug 21 14:24:29 2017 +0800 Committer: Wei Wang <[email protected]> Committed: Mon Aug 21 14:24:29 2017 +0800 ---------------------------------------------------------------------- test/python/test_layer.py | 2 +- tool/conda/meta.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/f6b47771/test/python/test_layer.py ---------------------------------------------------------------------- diff --git a/test/python/test_layer.py b/test/python/test_layer.py index b98065f..cef29e4 100644 --- a/test/python/test_layer.py +++ b/test/python/test_layer.py @@ -139,7 +139,7 @@ class TestPythonLayer(unittest.TestCase): self.check_shape(out_sample_shape, (64, 112, 112)) def test_max_pooling1D(self): - in_sample_shape = (224,) + in_sample_shape = (225,) pooling = layer.MaxPooling1D('pool', 3, 2, input_sample_shape=in_sample_shape) out_sample_shape = pooling.get_output_sample_shape() http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/f6b47771/tool/conda/meta.yaml ---------------------------------------------------------------------- diff --git a/tool/conda/meta.yaml b/tool/conda/meta.yaml index ea8bbd9..37f6897 100644 --- a/tool/conda/meta.yaml +++ b/tool/conda/meta.yaml @@ -36,6 +36,7 @@ requirements: - flask >=0.10.1 - flask-cors >=3.0.2 - pillow >=2.3.0 + - future >=3.0.0 test: source_files:
