typealias / abstract deps
This commit is contained in:
parent
2b0e2c9f97
commit
6751657dfa
@ -17,4 +17,4 @@ convert{T,S}(::Type{Seq{T,S}},storage::S) =
|
|||||||
Juno.trim(collect(b)))
|
Juno.trim(collect(b)))
|
||||||
end
|
end
|
||||||
|
|
||||||
typealias BatchSeq{T<:Seq} Batch{T}
|
BatchSeq{T<:Seq} = Batch{T}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
export Input
|
export Input
|
||||||
|
|
||||||
typealias Dims{N} NTuple{N,Int}
|
Dims{N} = NTuple{N,Int}
|
||||||
|
|
||||||
dims(d::Dims) = d
|
dims(d::Dims) = d
|
||||||
|
|
||||||
|
@ -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
|
closer to a protocol, and models don't need to inherit from this type. Normal
|
||||||
Julia functions are models with 0 parameters, for example.
|
Julia functions are models with 0 parameters, for example.
|
||||||
"""
|
"""
|
||||||
abstract Model
|
abstract type Model end
|
||||||
|
|
||||||
"""
|
"""
|
||||||
back!(m::Model, ΔY, X...) => ΔX
|
back!(m::Model, ΔY, X...) => ΔX
|
||||||
|
Loading…
Reference in New Issue
Block a user