Skip to content

Commit

Permalink
editing...
Browse files Browse the repository at this point in the history
  • Loading branch information
jzstark committed Mar 9, 2024
1 parent d347ad7 commit ffbb7e5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ The main purpose of the online tutorial is for teaching how to use Owl software.
The tooling and template reuse those in [Real World OCaml](https://realworldocaml.org/) under original authors' permission, with minor modidications.


Test code:

```ocaml
let test_sum_reduce ?(seq = false) ?(a = true) expected shape axis =
let input = if seq = false then N.ones shape else N.sequential shape in
let output = if a = true then N.sum_reduce ~axis input else N.sum_reduce input in
let out_shp = N.shape output in
let expected = N.of_array expected out_shp in
close output expected
```

## Compile

- `make` uses docker container to build the book.
Expand Down

0 comments on commit ffbb7e5

Please sign in to comment.