Skip to content

Commit

Permalink
[MINOR] Fixes in the documentation.
Browse files Browse the repository at this point in the history
- Thanks to @corepointer for the hints.
  • Loading branch information
pdamme committed Oct 20, 2022
1 parent 8f82332 commit c153853
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion doc/DaphneDSLBuiltins.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ We plan to support various matrix decompositions like **`eigen`**, **`lu`**, **`

## Deep neural network

Note that most of these operations only have a CUDNN-based kernel for GPU execution at the moment.

- **`affine`**`(inputData:matrix, weightData:matrix, biasData:matrix)`

- **`avg_pool2d`**`(inputData:matrix, numImages:size, numChannels:size, imgHeight:size, imgWidth:size, poolHeight:size, poolWidth:size, strideHeight:size, strideWidth:size, paddingHeight:size, paddingWidth:size)`
Expand Down Expand Up @@ -398,9 +400,11 @@ For both reading and writing, file names can be specified as absolute or relativ
For most formats, DAPHNE requires additional information on the data and value types as well as dimensions, *when reading files*.
These must be provided in a separate [`.meta`-file](/doc/FileMetaDataFormat.md).

- **`print`**`(arg:scalar/matrix/frame)`
- **`print`**`(arg:scalar/matrix/frame[, newline:bool[, toStderr:bool]])`

Prints the given scalar, matrix, or frame `arg` to `stdout`.
The parameter `newline` is optional; `true` (the default) means a new line is started after `arg`, `false` means no new line is started.
The parameter `toStderr` is optional; `true` means the text is printed to `stderr`, `false` (the default) means it is printed to `stdout`.

- **`readFrame`**`(filename:str)`

Expand Down
1 change: 1 addition & 0 deletions doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ limitations under the License.
- [DaphneDSL Language Reference](/doc/DaphneDSLLanguageRef.md)
- [DaphneDSL Built-in Functions](/doc/DaphneDSLBuiltins.md)
- [Using SQL in DaphneDSL](/doc/tutorial/sqlTutorial.md)
- [A Few Early Example Algorithms in DaphneDSL](/scripts/algorithms/)
- [FileMetaData Format (reading and writing data)](/doc/FileMetaDataFormat.md)

## Developer Documentation
Expand Down
2 changes: 1 addition & 1 deletion scripts/algorithms/components.daph
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ maxi = 0; # unlimited
verbose = true;

# read sparse graph
# G = readMatrix($G); #TODO Matrix Market
# G = readMatrix($G);
n = $n;
e = $e;
UT = upperTri(rand(n, n, 1.0, 1.0, 2.0*e/n^2.0, -1), false, false);
Expand Down

0 comments on commit c153853

Please sign in to comment.