Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
faust
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.4.
Show more breadcrumbs
faust group
faust
Commits
358e3d72
Commit
358e3d72
authored
5 years ago
by
hhakim
Browse files
Options
Downloads
Patches
Plain Diff
Modify an old test to measure time on sparse factors Faust (instead of numpy dense arrays).
Closes issue #137.
parent
644f5ed2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
misc/test/src/Python/test_pyFaust_time.py
+3
-3
3 additions, 3 deletions
misc/test/src/Python/test_pyFaust_time.py
with
3 additions
and
3 deletions
misc/test/src/Python/test_pyFaust_time.py
+
3
−
3
View file @
358e3d72
...
...
@@ -34,7 +34,7 @@
## Remi Gribonval : remi.gribonval@inria.fr ##
##############################################################################
# test multiplication time
from
scipy.sparse
import
csr_matrix
import
sys
import
os
if
len
(
sys
.
argv
)
!=
3
:
...
...
@@ -118,7 +118,7 @@ for j in range(nb_dim):
list_factor_sp
[
i
]
=
int_max
*
sp
.
random
(
dim
,
dim
,
density
=
density_per_fact
,
format
=
'
csr
'
,
dtype
=
np
.
float64
)
#transforme en entier
if
result_comparison
:
list_factor_sp
[
i
]
=
np
.
floor
(
list_factor_sp
[
i
])
list_factor_sp
[
i
]
=
csr_matrix
(
np
.
floor
(
list_factor_sp
[
i
]
.
toarray
())
)
list_factor_dense
[
i
]
=
list_factor_sp
[
i
].
toarray
()
#print(list_factor_dense[i])
...
...
@@ -133,7 +133,7 @@ for j in range(nb_dim):
# print(fact)
F
=
pyfaust
.
Faust
(
list_factor_
dense
)
F
=
pyfaust
.
Faust
(
list_factor_
sp
)
F_dense
=
F
.
toarray
()
if
(
F
.
shape
[
0
]
!=
dim
)
or
(
F
.
shape
[
1
]
!=
dim
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment