File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/python
2
2
3
3
#######################################################
4
- # Copyright (c) 2015 , ArrayFire
4
+ # Copyright (c) 2024 , ArrayFire
5
5
# All rights reserved.
6
6
#
7
7
# This file is distributed under 3-clause BSD license.
15
15
16
16
import arrayfire as af
17
17
18
- # TODO: Remove -1 from sync() after default value has been put in
19
18
try :
20
19
import numpy as np
21
20
except ImportError :
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/python
2
+
3
+ #######################################################
4
+ # Copyright (c) 2024, ArrayFire
5
+ # All rights reserved.
6
+ #
7
+ # This file is distributed under 3-clause BSD license.
8
+ # The complete license agreement can be obtained at:
1
9
# http://arrayfire.com/licenses/BSD-3-Clause
2
10
########################################################
3
11
Original file line number Diff line number Diff line change 13
13
from random import random
14
14
from time import time
15
15
16
- import arrayfire as af
16
+ import numpy as np
17
17
18
- try :
19
- import numpy as np
20
- except ImportError :
21
- np = None # type: ignore[assignment]
18
+ import arrayfire as af
22
19
23
- #TODO: Remove Python2 support?
24
- # alias range / xrange because xrange is faster than range in python2
25
20
try :
26
21
frange = xrange # type: ignore[name-defined]
27
22
except NameError :
You can’t perform that action at this time.
0 commit comments