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
Show more breadcrumbs
faust group
faust
Commits
c66cc996
Commit
c66cc996
authored
5 years ago
by
hhakim
Browse files
Options
Downloads
Patches
Plain Diff
Minor change: add a warning when pyfaust hierarchical2020/palm4msa2020 are gpu enabled.
parent
fd703109
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wrapper/python/pyfaust/fact.py
+4
-0
4 additions, 0 deletions
wrapper/python/pyfaust/fact.py
with
4 additions
and
0 deletions
wrapper/python/pyfaust/fact.py
+
4
−
0
View file @
c66cc996
...
@@ -460,6 +460,8 @@ def palm4msa(M, p, ret_lambda=False, backend=2016, on_gpu=False):
...
@@ -460,6 +460,8 @@ def palm4msa(M, p, ret_lambda=False, backend=2016, on_gpu=False):
if
on_gpu
:
raise
ValueError
(
"
on_gpu applies only on 2020 backend.
"
)
if
on_gpu
:
raise
ValueError
(
"
on_gpu applies only on 2020 backend.
"
)
core_obj
,
_lambda
=
_FaustCorePy
.
FaustFact
.
fact_palm4msa
(
M
,
p
)
core_obj
,
_lambda
=
_FaustCorePy
.
FaustFact
.
fact_palm4msa
(
M
,
p
)
elif
(
backend
==
2020
):
elif
(
backend
==
2020
):
if
on_gpu
:
warnings
.
warn
(
"
on_gpu is totally experimental, use at your
"
"
own risk.
"
)
core_obj
,
_lambda
=
_FaustCorePy
.
FaustFact
.
palm4msa2020
(
M
,
p
,
on_gpu
)
core_obj
,
_lambda
=
_FaustCorePy
.
FaustFact
.
palm4msa2020
(
M
,
p
,
on_gpu
)
else
:
else
:
raise
ValueError
(
"
Unknown backend (only 2016 and 2020 are available).
"
)
raise
ValueError
(
"
Unknown backend (only 2016 and 2020 are available).
"
)
...
@@ -644,6 +646,8 @@ def hierarchical(M, p, ret_lambda=False, ret_params=False, backend=2016,
...
@@ -644,6 +646,8 @@ def hierarchical(M, p, ret_lambda=False, ret_params=False, backend=2016,
if
on_gpu
:
raise
ValueError
(
"
on_gpu applies only on 2020 backend.
"
)
if
on_gpu
:
raise
ValueError
(
"
on_gpu applies only on 2020 backend.
"
)
core_obj
,
_lambda
=
_FaustCorePy
.
FaustFact
.
fact_hierarchical
(
M
,
p
)
core_obj
,
_lambda
=
_FaustCorePy
.
FaustFact
.
fact_hierarchical
(
M
,
p
)
elif
(
backend
==
2020
):
elif
(
backend
==
2020
):
if
on_gpu
:
warnings
.
warn
(
"
on_gpu is totally experimental, use at your
"
"
own risk.
"
)
core_obj
,
_lambda
=
_FaustCorePy
.
FaustFact
.
hierarchical2020
(
M
,
p
,
core_obj
,
_lambda
=
_FaustCorePy
.
FaustFact
.
hierarchical2020
(
M
,
p
,
on_gpu
)
on_gpu
)
else
:
else
:
...
...
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