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 11#!/usr/bin/python
22
33#######################################################
4- # Copyright (c) 2015 , ArrayFire
4+ # Copyright (c) 2024 , ArrayFire
55# All rights reserved.
66#
77# This file is distributed under 3-clause BSD license.
1515
1616import arrayfire as af
1717
18- # TODO: Remove -1 from sync() after default value has been put in
1918try :
2019 import numpy as np
2120except 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:
19# http://arrayfire.com/licenses/BSD-3-Clause
210########################################################
311
Original file line number Diff line number Diff line change 1313from random import random
1414from time import time
1515
16- import arrayfire as af
16+ import numpy as np
1717
18- try :
19- import numpy as np
20- except ImportError :
21- np = None # type: ignore[assignment]
18+ import arrayfire as af
2219
23- #TODO: Remove Python2 support?
24- # alias range / xrange because xrange is faster than range in python2
2520try :
2621 frange = xrange # type: ignore[name-defined]
2722except NameError :
You can’t perform that action at this time.
0 commit comments