We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa3cadb commit 4587539Copy full SHA for 4587539
test/test_compiler_functions.py
@@ -371,11 +371,12 @@ def test_run_kernel():
371
372
373
def test_refresh_memory():
374
- arg1 = np.array([1, 2, 3]).astype(np.int8)
+ arg1 = np.array([1, 2, 3]).astype(np.int32)
375
+ arguments = [arg1]
376
cfunc = CompilerFunctions()
- output = cfunc.ready_argument_list([arg1])
377
- assert np.all(output == arg1)
378
- arg1 = np.array([0, 0, 0]).astype(np.int8)
379
- assert np.all(arg1 == [0, 0, 0])
380
- cfunc.refresh_memory(arg1, [True])
381
- assert np.all(arg1 == [1, 2, 3])
+ _ = cfunc.ready_argument_list(arguments)
+ assert np.all(arguments[0] == [1, 2, 3])
+ arguments[0] = np.array([0, 0, 0]).astype(np.int8)
+ assert np.all(arguments[0] == [0, 0, 0])
+ cfunc.refresh_memory(arguments, [True])
382
0 commit comments