typealias / abstract deps

This commit is contained in:
Mike J Innes 2017-03-14 16:51:31 +00:00
parent 2b0e2c9f97
commit 6751657dfa
3 changed files with 3 additions and 3 deletions

View File

@ -17,4 +17,4 @@ convert{T,S}(::Type{Seq{T,S}},storage::S) =
Juno.trim(collect(b)))
end
typealias BatchSeq{T<:Seq} Batch{T}
BatchSeq{T<:Seq} = Batch{T}

View File

@ -1,6 +1,6 @@
export Input
typealias Dims{N} NTuple{N,Int}
Dims{N} = NTuple{N,Int}
dims(d::Dims) = d

View File

@ -15,7 +15,7 @@ where `W` and `b` are a trainable matrix and vector of weights repectively. The
closer to a protocol, and models don't need to inherit from this type. Normal
Julia functions are models with 0 parameters, for example.
"""
abstract Model
abstract type Model end
"""
back!(m::Model, ΔY, X...) => ΔX