Skip to content

Commit 7bb3a27

Browse files
committed
Merge branch 'auphelia-fix/io_tensor_order'
2 parents 0630cea + 5cfacb8 commit 7bb3a27

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

tests/custom_op/test_multithreshold.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828

2929
import numpy as np
30-
import time
3130

3231
from qonnx.custom_op.general.multithreshold import multithreshold
3332

@@ -299,21 +298,11 @@ def test_multithreshold():
299298
np.random.seed(0)
300299
inputs = np.random.random((1, 256, 64, 64))
301300
thresholds = (np.array([[1, 2, 3, 4, 5, 6]]) - 0.5) / 6
302-
303-
before = time.time()
304301
vec_results = multithreshold(inputs, thresholds)
305-
after = time.time()
306-
vector_runtime = after - before
307-
308-
before = time.time()
309302
nonvec_results = multithreshold_elementwise(inputs, thresholds)
310-
after = time.time()
311-
non_vector_runtime = after - before
312303

313304
assert (vec_results == nonvec_results).all()
314305

315-
return vector_runtime, non_vector_runtime
316-
317306

318307
if __name__ == "__main__":
319308
vector_runtime, non_vector_runtime = test_multithreshold()

0 commit comments

Comments
 (0)