Skip to content

Commit ee02a6d

Browse files
committed
fixed conv2d_test
1 parent 3fb2d34 commit ee02a6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/layer_conv_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def test_Atrous_Conv2d():
5050
sess.run(init)
5151
out = sess.run(y_sb, feed_dict={X_ph:np.random.rand(32, h, w, c)})
5252
print(out.shape)
53-
assert out.shape[1] == h - 2*((k+(k-1)*(r-1))/2), out.shape[2] == w - 2*((w+(w-1)*(r-1))/2)
53+
assert out.shape[1] == h - 2*int((k+(k-1)*(r-1))/2), out.shape[2] == w - 2*int((w+(w-1)*(r-1))/2)
5454

5555

5656

0 commit comments

Comments
 (0)