Skip to content

Commit 6661cae

Browse files
sakchalsyurkevi
authored andcommitted
fixed formatting in examples
1 parent addcc8e commit 6661cae

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

examples/getting_started/convolve.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
import sys
1313
from array import array
14-
15-
# from time import time
1614
from timeit import timeit
1715

1816
import arrayfire as af
@@ -34,8 +32,8 @@ def af_assert(left, right, eps=1e-6):
3432
h_spread = array("f", (1.0 / 5, 1.0 / 5, 1.0 / 5, 1.0 / 5, 1.0 / 5))
3533

3634
img = af.randu((640, 480))
37-
dx = af.Array(obj=h_dx, shape=(5, 1))
38-
spread = af.Array(obj=h_spread, shape=(1, 5))
35+
dx = af.Array(h_dx, shape=(5, 1))
36+
spread = af.Array(h_spread, shape=(1, 5))
3937
kernel = af.matmul(dx, spread)
4038

4139
full_res = convolve2(img, kernel)

examples/getting_started/intro.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from array import array
1414

1515
import arrayfire as af
16-
from arrayfire.array_object import _array_as_str
1716

1817
if __name__ == "__main__":
1918
if len(sys.argv) > 1:
@@ -74,5 +73,5 @@
7473

7574
print("\n---- Get minimum with index\n")
7675
(min_val, min_idx) = af.imin(A, axis=0)
77-
print(_array_as_str(min_val)) # type: ignore[arg-type]
78-
print(_array_as_str(min_idx)) # type: ignore[arg-type]
76+
print(min_val) # type: ignore[arg-type]
77+
print(min_idx) # type: ignore[arg-type]

0 commit comments

Comments
 (0)