提交 a21a33fd authored 作者: Frederic Bastien's avatar Frederic Bastien

make scipy use the same mode as theano. warn that opencv don't use the same mode.

上级 0c302155
...@@ -2,4 +2,6 @@ ...@@ -2,4 +2,6 @@
python opencv.py $@ python opencv.py $@
python conv2d.py $@ python conv2d.py $@
python scipy_conv.py $@ python scipy_conv.py $@
\ No newline at end of file
echo "WARNING the mode is valid for theano and scipy, but opencv use the mode same! Can opencv do the mode full?"
...@@ -23,7 +23,7 @@ img = numpy.ones(img_shape, dtype=dtype) ...@@ -23,7 +23,7 @@ img = numpy.ones(img_shape, dtype=dtype)
ker = numpy.ones(ker_shape, dtype=dtype) ker = numpy.ones(ker_shape, dtype=dtype)
def f(): def f():
convolve2d(img, ker) convolve2d(img, ker, mode="valid")
""") """)
time = T.repeat(repeat=3, number=nb_call) time = T.repeat(repeat=3, number=nb_call)
print min(time), "scipy" print min(time), "scipy"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论