From e16c24a9b8872c29552f5e1a4d390dc35a4d81e8 Mon Sep 17 00:00:00 2001 From: janEbert Date: Sat, 4 Apr 2020 19:43:28 +0200 Subject: [PATCH] General minuscule improvements --- src/data/cmudict.jl | 4 ++-- src/layers/normalise.jl | 2 +- src/layers/recurrent.jl | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/data/cmudict.jl b/src/data/cmudict.jl index 0ed724d4..9ddecbcd 100644 --- a/src/data/cmudict.jl +++ b/src/data/cmudict.jl @@ -27,7 +27,7 @@ end """ phones() -Return a `Vector` containing the phones used in the dataset. +Return a `Vector` containing the phones used in the CMU Pronouncing Dictionary. """ function phones() load() @@ -38,7 +38,7 @@ end """ symbols() -Return a `Vector` containing the symbols used in the dataset. +Return a `Vector` containing the symbols used in the CMU Pronouncing Dictionary. A symbol is a phone with optional auxiliary symbols, indicating for example the amount of stress on the phone. """ diff --git a/src/layers/normalise.jl b/src/layers/normalise.jl index 29725066..b81e4967 100644 --- a/src/layers/normalise.jl +++ b/src/layers/normalise.jl @@ -30,7 +30,7 @@ end """ Dropout(p, dims = :) -Dropout layer. In the forward pass, applies the [`Flux.dropout`](@ref) function on the input. +Dropout layer. In the forward pass, apply the [`Flux.dropout`](@ref) function on the input. Does nothing to the input once [`Flux.testmode!`](@ref) is `true`. """ diff --git a/src/layers/recurrent.jl b/src/layers/recurrent.jl index d9de9884..a93c4a0a 100644 --- a/src/layers/recurrent.jl +++ b/src/layers/recurrent.jl @@ -48,7 +48,7 @@ Base.show(io::IO, m::Recur) = print(io, "Recur(", m.cell, ")") Reset the hidden state of a recurrent layer back to its original value. Assuming you have a `Recur` layer `rnn`, this is roughly equivalent to: -``` +```julia rnn.state = hidden(rnn.cell) ``` """