cavis/docs
Ryan Nett f40bdcf885 Dl4j LSTM and Dropout CuDNN fallback and options (#152)
* add fallback for Conv layer activation

Signed-off-by: Ryan Nett <rnett@skymind.io>

* add fallback and config option for LSTM layers

Signed-off-by: Ryan Nett <rnett@skymind.io>

* add fallback option and setting for dropout

Signed-off-by: Ryan Nett <rnett@skymind.io>

* fix comments and error messages

Signed-off-by: Ryan Nett <rnett@skymind.io>

* move helper fail count to layer instance

Signed-off-by: Ryan Nett <rnett@skymind.io>

* ignore helperCountFail for equals and json

Signed-off-by: Ryan Nett <rnett@skymind.io>

* typo fix (MLK -> MKL)

Signed-off-by: Ryan Nett <rnett@skymind.io>

* add MKLDNN to error messages

Signed-off-by: Ryan Nett <rnett@skymind.io>

* add helperAllowFallback to builders, deprecate cudnnAllowFallback

Signed-off-by: Ryan Nett <rnett@skymind.io>
2019-08-29 13:05:01 +10:00
..
arbiter Eclipse Migration Initial Commit 2019-06-06 15:21:15 +03:00
datavec Eclipse Migration Initial Commit 2019-06-06 15:21:15 +03:00
deeplearning4j Dl4j LSTM and Dropout CuDNN fallback and options (#152) 2019-08-29 13:05:01 +10:00
deeplearning4j-nlp Eclipse Migration Initial Commit 2019-06-06 15:21:15 +03:00
deeplearning4j-nn Eclipse Migration Initial Commit 2019-06-06 15:21:15 +03:00
deeplearning4j-scaleout Eclipse Migration Initial Commit 2019-06-06 15:21:15 +03:00
deeplearning4j-zoo Eclipse Migration Initial Commit 2019-06-06 15:21:15 +03:00
keras-import Eclipse Migration Initial Commit 2019-06-06 15:21:15 +03:00
nd4j Quick start ND4J (#7916) 2019-07-02 13:43:07 +10:00
nd4j-nn Eclipse Migration Initial Commit 2019-06-06 15:21:15 +03:00
samediff SameDiff ops documentation (#8043) 2019-08-15 11:05:14 +10:00
scalnet Eclipse Migration Initial Commit 2019-06-06 15:21:15 +03:00
README.md Eclipse Migration Initial Commit 2019-06-06 15:21:15 +03:00
__init__.py Eclipse Migration Initial Commit 2019-06-06 15:21:15 +03:00
copy-to-dl4j-docs.sh Eclipse Migration Initial Commit 2019-06-06 15:21:15 +03:00
doc_generator.py Eclipse Migration Initial Commit 2019-06-06 15:21:15 +03:00
gen_all_docs.sh Eclipse Migration Initial Commit 2019-06-06 15:21:15 +03:00
generate_docs.py Eclipse Migration Initial Commit 2019-06-06 15:21:15 +03:00
java_doc.py Eclipse Migration Initial Commit 2019-06-06 15:21:15 +03:00
python_doc.py Eclipse Migration Initial Commit 2019-06-06 15:21:15 +03:00
scala_doc.py Eclipse Migration Initial Commit 2019-06-06 15:21:15 +03:00

README.md

DL4J auto-generated documentation

Building

Run ./gen_all_docs.sh to generate documentation from source for all supported projects. For each documentation module, files will be put into a doc_sources folder where they are staged for copying to the primary docs repository. Note that the autogen docs require Python 2.

To deploy a new version of documentation, first make sure to set $DL4J_DOCS_DIR to your local copy of https://github.com/deeplearning4j/deeplearning4j-docs and set $DL4J_VERSION to a URI-friendly version string such as v100-RC (note the lack of decimals). Then run ./copy-to-dl4j-docs.sh. This puts documentation into the right folders and you can use git to create a PR and update the live docs.

The structure of this project (template files, generating code, mkdocs YAML) is closely aligned with the Keras documentation and heavily inspired by the Keras docs repository.

File structure

Each major module or library in Eclipse Deeplearning4j has its own folder. Inside that folder are three essential files:

  • templates/
  • pages.json
  • README.md

Note that the folder names don't exactly match up with the modules in the pom.xml definitions across DL4J. This is because some of the documentation is consolidated (such as DataVec) or omitted due to its experimental status or because it is low-level in the code.

Templates must maintain a flat file structure. This is to accommodate Jekyll collections when the docs are published. Don't worry about having similarly named files in different doc modules - the module name is prepended when the docs are generated.

Creating templates

Each template has a Jekyll header at the top:

---
title: Deeplearning4j Autoencoders
short_title: Autoencoders
description: Supported autoencoder configurations.
category: Models
weight: 3
---

All of these definitions are necessary.

  • title is the HTML title that appears for a Google result or at the top of the browser window.
  • short_title is a short name for simple navigation in the user guide.
  • description is the text that appears below the title in a search engine result.
  • category is the high-level category in the user guide.
  • weight is the ordering that the doc will appear in navigation, the larger the lower the listing.

All links to other docs need to be relative. This prolongs the life of the documentation and reduces maintenance. The basic structure of a link to another doc looks like:

<module name>-<file name>

So if you created a DataVec doc with the name iterators.md in the datavec module, your relative link will look like:

./datavec-iterators

Note the omission of the file extension .md. Jekyll automatically generates a clean URL for us to use.