build based on 2de6b06
This commit is contained in:
parent
05cca818ec
commit
0982686978
@ -150,7 +150,7 @@ Backends
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<a class="edit-page" href="https://github.com/MikeInnes/Flux.jl/tree/015c3b0856fcfcb7949c9188fc9c3ab393eed950/docs/src/apis/backends.md">
|
<a class="edit-page" href="https://github.com/MikeInnes/Flux.jl/tree/2de6b063adbbb3228af6534f321a0c46ff0607f6/docs/src/apis/backends.md">
|
||||||
<span class="fa">
|
<span class="fa">
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
|
@ -155,7 +155,7 @@ Batching
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<a class="edit-page" href="https://github.com/MikeInnes/Flux.jl/tree/015c3b0856fcfcb7949c9188fc9c3ab393eed950/docs/src/apis/batching.md">
|
<a class="edit-page" href="https://github.com/MikeInnes/Flux.jl/tree/2de6b063adbbb3228af6534f321a0c46ff0607f6/docs/src/apis/batching.md">
|
||||||
<span class="fa">
|
<span class="fa">
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
|
@ -139,7 +139,7 @@ Storing Models
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<a class="edit-page" href="https://github.com/MikeInnes/Flux.jl/tree/015c3b0856fcfcb7949c9188fc9c3ab393eed950/docs/src/apis/storage.md">
|
<a class="edit-page" href="https://github.com/MikeInnes/Flux.jl/tree/2de6b063adbbb3228af6534f321a0c46ff0607f6/docs/src/apis/storage.md">
|
||||||
<span class="fa">
|
<span class="fa">
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
@ -149,8 +149,8 @@ Storing Models
|
|||||||
<hr/>
|
<hr/>
|
||||||
</header>
|
</header>
|
||||||
<h1>
|
<h1>
|
||||||
<a class="nav-anchor" id="Loading-and-Save-Models-1" href="#Loading-and-Save-Models-1">
|
<a class="nav-anchor" id="Loading-and-Saving-Models-1" href="#Loading-and-Saving-Models-1">
|
||||||
Loading and Save Models
|
Loading and Saving Models
|
||||||
</a>
|
</a>
|
||||||
</h1>
|
</h1>
|
||||||
<pre><code class="language-julia">model = Chain(Affine(10, 20), σ, Affine(20, 15), softmax)</code></pre>
|
<pre><code class="language-julia">model = Chain(Affine(10, 20), σ, Affine(20, 15), softmax)</code></pre>
|
||||||
|
@ -136,7 +136,7 @@ Contributing & Help
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<a class="edit-page" href="https://github.com/MikeInnes/Flux.jl/tree/015c3b0856fcfcb7949c9188fc9c3ab393eed950/docs/src/contributing.md">
|
<a class="edit-page" href="https://github.com/MikeInnes/Flux.jl/tree/2de6b063adbbb3228af6534f321a0c46ff0607f6/docs/src/contributing.md">
|
||||||
<span class="fa">
|
<span class="fa">
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
|
@ -139,7 +139,7 @@ Char RNN
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<a class="edit-page" href="https://github.com/MikeInnes/Flux.jl/tree/015c3b0856fcfcb7949c9188fc9c3ab393eed950/docs/src/examples/char-rnn.md">
|
<a class="edit-page" href="https://github.com/MikeInnes/Flux.jl/tree/2de6b063adbbb3228af6534f321a0c46ff0607f6/docs/src/examples/char-rnn.md">
|
||||||
<span class="fa">
|
<span class="fa">
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
|
@ -139,7 +139,7 @@ Logistic Regression
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<a class="edit-page" href="https://github.com/MikeInnes/Flux.jl/tree/015c3b0856fcfcb7949c9188fc9c3ab393eed950/docs/src/examples/logreg.md">
|
<a class="edit-page" href="https://github.com/MikeInnes/Flux.jl/tree/2de6b063adbbb3228af6534f321a0c46ff0607f6/docs/src/examples/logreg.md">
|
||||||
<span class="fa">
|
<span class="fa">
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
|
@ -147,7 +147,7 @@ Home
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<a class="edit-page" href="https://github.com/MikeInnes/Flux.jl/tree/015c3b0856fcfcb7949c9188fc9c3ab393eed950/docs/src/index.md">
|
<a class="edit-page" href="https://github.com/MikeInnes/Flux.jl/tree/2de6b063adbbb3228af6534f321a0c46ff0607f6/docs/src/index.md">
|
||||||
<span class="fa">
|
<span class="fa">
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
|
@ -136,7 +136,7 @@ Internals
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<a class="edit-page" href="https://github.com/MikeInnes/Flux.jl/tree/015c3b0856fcfcb7949c9188fc9c3ab393eed950/docs/src/internals.md">
|
<a class="edit-page" href="https://github.com/MikeInnes/Flux.jl/tree/2de6b063adbbb3228af6534f321a0c46ff0607f6/docs/src/internals.md">
|
||||||
<span class="fa">
|
<span class="fa">
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
|
@ -155,7 +155,7 @@ Model Building Basics
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<a class="edit-page" href="https://github.com/MikeInnes/Flux.jl/tree/015c3b0856fcfcb7949c9188fc9c3ab393eed950/docs/src/models/basics.md">
|
<a class="edit-page" href="https://github.com/MikeInnes/Flux.jl/tree/2de6b063adbbb3228af6534f321a0c46ff0607f6/docs/src/models/basics.md">
|
||||||
<span class="fa">
|
<span class="fa">
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
|
@ -139,7 +139,7 @@ Debugging
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<a class="edit-page" href="https://github.com/MikeInnes/Flux.jl/tree/015c3b0856fcfcb7949c9188fc9c3ab393eed950/docs/src/models/debugging.md">
|
<a class="edit-page" href="https://github.com/MikeInnes/Flux.jl/tree/2de6b063adbbb3228af6534f321a0c46ff0607f6/docs/src/models/debugging.md">
|
||||||
<span class="fa">
|
<span class="fa">
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
|
@ -139,7 +139,7 @@ Recurrence
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<a class="edit-page" href="https://github.com/MikeInnes/Flux.jl/tree/015c3b0856fcfcb7949c9188fc9c3ab393eed950/docs/src/models/recurrent.md">
|
<a class="edit-page" href="https://github.com/MikeInnes/Flux.jl/tree/2de6b063adbbb3228af6534f321a0c46ff0607f6/docs/src/models/recurrent.md">
|
||||||
<span class="fa">
|
<span class="fa">
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
|
@ -155,7 +155,7 @@ Model Templates
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<a class="edit-page" href="https://github.com/MikeInnes/Flux.jl/tree/015c3b0856fcfcb7949c9188fc9c3ab393eed950/docs/src/models/templates.md">
|
<a class="edit-page" href="https://github.com/MikeInnes/Flux.jl/tree/2de6b063adbbb3228af6534f321a0c46ff0607f6/docs/src/models/templates.md">
|
||||||
<span class="fa">
|
<span class="fa">
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
|
@ -225,9 +225,9 @@ var documenterSearchIndex = {"docs": [
|
|||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"location": "apis/storage.html#Loading-and-Save-Models-1",
|
"location": "apis/storage.html#Loading-and-Saving-Models-1",
|
||||||
"page": "Storing Models",
|
"page": "Storing Models",
|
||||||
"title": "Loading and Save Models",
|
"title": "Loading and Saving Models",
|
||||||
"category": "section",
|
"category": "section",
|
||||||
"text": "model = Chain(Affine(10, 20), σ, Affine(20, 15), softmax)Since models are just simple Julia data structures, it's very easy to save and load them using any of Julia's existing serialisation formats. For example, using Julia's built-in serialize:open(io -> serialize(io, model), \"model.jls\", \"w\")\nopen(io -> deserialize(io), \"model.jls\")One issue with serialize is that it doesn't promise compatibility between major Julia versions. For longer-term storage it's good to use a package like JLD.using JLD\n@save \"model.jld\" model\n@load \"model.jld\"However, JLD will break for some models as functions are not supported on 0.5+. You can resolve that by checking out this branch.Right now this is the only storage format Flux supports. In future Flux will support loading and saving other model formats (on an as-needed basis)."
|
"text": "model = Chain(Affine(10, 20), σ, Affine(20, 15), softmax)Since models are just simple Julia data structures, it's very easy to save and load them using any of Julia's existing serialisation formats. For example, using Julia's built-in serialize:open(io -> serialize(io, model), \"model.jls\", \"w\")\nopen(io -> deserialize(io), \"model.jls\")One issue with serialize is that it doesn't promise compatibility between major Julia versions. For longer-term storage it's good to use a package like JLD.using JLD\n@save \"model.jld\" model\n@load \"model.jld\"However, JLD will break for some models as functions are not supported on 0.5+. You can resolve that by checking out this branch.Right now this is the only storage format Flux supports. In future Flux will support loading and saving other model formats (on an as-needed basis)."
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user