Skip to content

Commit

Permalink
doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
YichengDWu committed Jun 21, 2022
1 parent 094ce27 commit 95a2ca7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ makedocs(;
edit_link="main",
assets=String[],
),

doctest = false,
strict = [
:doctest,
:linkcheck,
:parse_error,
:example_block,
# Other available options are
# :autodocs_block, :cross_references, :docs_block, :eval_block, :example_block, :footnote, :meta_block, :missing_docs, :setup_block
],

pages=[
"Home" => "index.md",
"Tutorials" =>
Expand All @@ -22,7 +33,7 @@ makedocs(;
],
"API Reference" =>
[
"layers" => "api/layers.md",
"Layers" => "api/layers.md",
"Message Passing" => "api/messagepassing.md",
"Utilities" => "api/utilities.md"
],
Expand Down
2 changes: 1 addition & 1 deletion docs/src/tutorials/graph_node.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ device = CUDA.functional() ? gpu : cpu

## Load data
```@example gnode
onehotbatch(data::CuArray,labels)= cu(labels).==reshape(data, 1,size(data)...)
onehotbatch(data::CuArray,labels) = cu(labels) .== reshape(data, 1,size(data)...)
onecold(y) = map(argmax,eachcol(y))
dataset = Cora();
Expand Down

0 comments on commit 95a2ca7

Please sign in to comment.