-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DAPHNE-#719] Add support for command-line arguments in DaphneLib
- Introduced two ways to pass DAPHNE arguments: array and string formats. - Updated documentation - Added testcases
- Loading branch information
Showing
8 changed files
with
148 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import numpy as np | ||
from daphne.context.daphne_context import DaphneContext | ||
|
||
m1 = np.array([3, 9, 12]) | ||
dc = DaphneContext() | ||
X = dc.from_numpy(m1) | ||
X.print().compute(daphne_args=["--vec", "--pin-workers"]) | ||
X.print().compute(daphne_args=["--explain", "parsing_simplified"]) | ||
X.print().compute(daphne_args=["--explain", "parsing_simplified, parsing", "--timing"]) | ||
X.print().compute(daphne_args="--explain=parsing_simplified,parsing --timing") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
DenseMatrix(3x1, int64_t) | ||
3 | ||
9 | ||
12 | ||
DenseMatrix(3x1, int64_t) | ||
3 | ||
9 | ||
12 | ||
DenseMatrix(3x1, int64_t) | ||
3 | ||
9 | ||
12 | ||
DenseMatrix(3x1, int64_t) | ||
3 | ||
9 | ||
12 |