FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
xtensor-python/benchmark/benchmark_pytensor.py at master · xtensor-stack/xtensor-python · GitHub
xtensor-stack
xtensor-python
Repository navigation
Code
Issues
38
(38)
Pull requests
4
(4)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
xtensor-python
/
benchmark
/
benchmark_pytensor.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
7 lines (6 loc) · 240 Bytes
Breadcrumbs
xtensor-python
/
benchmark
/
benchmark_pytensor.py
Copy path
File metadata and controls
7 lines (6 loc) · 240 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
from
benchmark_xtensor_python
import
sum_tensor
import
numpy
as
np
u
=
np
.
ones
(
1000000
,
dtype
=
float
)
#print(sum_tensor(u))
from
timeit
import
timeit
print
(
timeit
(
'sum_tensor(u)'
,
setup
=
'from __main__ import u, sum_tensor'
,
number
=
1000
))
Back
|
FazBrowse Home
|
New Git URL