-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0d4dc2a
commit 07b2106
Showing
16 changed files
with
258 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using Test | ||
using RecurrentLayers | ||
using Flux | ||
|
||
@testset "IndRNNCell" begin | ||
@testset "Sizes and parameters" begin | ||
indrnn = IndRNNCell(3 => 5) | ||
@test length(Flux.trainables(indrnn)) == 3 | ||
|
||
inp = rand(Float32, 3) | ||
@test indrnn(inp) == indrnn(inp, zeros(Float32, 5)) | ||
|
||
indrnn = IndRNNCell(3 => 5; bias=false) | ||
@test length(Flux.trainables(indrnn)) == 2 | ||
|
||
inp = rand(Float32, 3) | ||
@test indrnn(inp) == indrnn(inp, zeros(Float32, 5)) | ||
end | ||
end | ||
|
||
#@testset "IndRNN" begin | ||
#end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using Test | ||
using RecurrentLayers | ||
using Flux | ||
|
||
@testset "LightRUCell" begin | ||
@testset "Sizes and parameters" begin | ||
lightru = LightRUCell(3 => 5) | ||
@test length(Flux.trainables(lightru)) == 3 | ||
|
||
inp = rand(Float32, 3) | ||
@test lightru(inp) == lightru(inp, zeros(Float32, 5)) | ||
|
||
lightru = LightRUCell(3 => 5; bias=false) | ||
@test length(Flux.trainables(lightru)) == 2 | ||
|
||
inp = rand(Float32, 3) | ||
@test lightru(inp) == lightru(inp, zeros(Float32, 5)) | ||
end | ||
end | ||
|
||
#@testset "LightRU" begin | ||
#end |
Oops, something went wrong.