提交 99707b28 编写于 作者: B barrierye

change / to // to fit py3

上级 8c1e3043
...@@ -47,7 +47,7 @@ class TestSimilarityFocusOp(OpTest): ...@@ -47,7 +47,7 @@ class TestSimilarityFocusOp(OpTest):
cnt = 0 cnt = 0
for i in range(channel.size): for i in range(channel.size):
index = channel.argmax() index = channel.argmax()
idx1 = index / z_dim idx1 = index // z_dim
idx2 = index % z_dim idx2 = index % z_dim
if tag1[idx1] + tag2[idx2] == 0: if tag1[idx1] + tag2[idx2] == 0:
tag1[idx1] = 1 tag1[idx1] = 1
...@@ -95,7 +95,7 @@ class TestSimilarityFocusOp_axis1(OpTest): ...@@ -95,7 +95,7 @@ class TestSimilarityFocusOp_axis1(OpTest):
cnt = 0 cnt = 0
for i in range(channel.size): for i in range(channel.size):
index = channel.argmax() index = channel.argmax()
idx1 = index / z_dim idx1 = index // z_dim
idx2 = index % z_dim idx2 = index % z_dim
if tag1[idx1] + tag2[idx2] == 0: if tag1[idx1] + tag2[idx2] == 0:
tag1[idx1] = 1 tag1[idx1] = 1
...@@ -143,7 +143,7 @@ class TestSimilarityFocusOp_axis2(OpTest): ...@@ -143,7 +143,7 @@ class TestSimilarityFocusOp_axis2(OpTest):
cnt = 0 cnt = 0
for i in range(channel.size): for i in range(channel.size):
index = channel.argmax() index = channel.argmax()
idx1 = index / z_dim idx1 = index // z_dim
idx2 = index % z_dim idx2 = index % z_dim
if tag1[idx1] + tag2[idx2] == 0: if tag1[idx1] + tag2[idx2] == 0:
tag1[idx1] = 1 tag1[idx1] = 1
...@@ -191,7 +191,7 @@ class TestSimilarityFocusOp_axis3(OpTest): ...@@ -191,7 +191,7 @@ class TestSimilarityFocusOp_axis3(OpTest):
cnt = 0 cnt = 0
for i in range(channel.size): for i in range(channel.size):
index = channel.argmax() index = channel.argmax()
idx1 = index / y_dim idx1 = index // y_dim
idx2 = index % y_dim idx2 = index % y_dim
if tag1[idx1] + tag2[idx2] == 0: if tag1[idx1] + tag2[idx2] == 0:
tag1[idx1] = 1 tag1[idx1] = 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册