rename seqmodel
This commit is contained in:
parent
102e09d14b
commit
1c6eaece5d
@ -1,4 +1,4 @@
|
|||||||
immutable RModel
|
immutable SeqModel
|
||||||
m::Model
|
m::Model
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -11,7 +11,7 @@ function tf(model::Flux.Unrolled)
|
|||||||
run(sess, initialize_all_variables())
|
run(sess, initialize_all_variables())
|
||||||
Model(model, sess, params,
|
Model(model, sess, params,
|
||||||
[input], [output],
|
[input], [output],
|
||||||
[gradients(output, input)]) |> RModel
|
[gradients(output, input)]) |> SeqModel
|
||||||
end
|
end
|
||||||
|
|
||||||
function batchseq(xs)
|
function batchseq(xs)
|
||||||
@ -22,6 +22,6 @@ function batchseq(xs)
|
|||||||
Batch{Seq{T,S},B}(xs)
|
Batch{Seq{T,S},B}(xs)
|
||||||
end
|
end
|
||||||
|
|
||||||
(m::RModel)(x::BatchSeq) = batchseq(rawbatch(m.m(x)))
|
(m::SeqModel)(x::BatchSeq) = batchseq(rawbatch(m.m(x)))
|
||||||
|
|
||||||
(m::RModel)(x::Seq) = first(m(batchone(x)))
|
(m::SeqModel)(x::Seq) = first(m(batchone(x)))
|
||||||
|
Loading…
Reference in New Issue
Block a user