def check_get(self, f, stream): a_gpu = f(cupy) a_cpu = a_gpu.get(stream) if stream: stream.synchronize() b_cpu = f(numpy) np_testing.assert_array_equal(a_cpu, b_cpu)