Skip to content

Commit

Permalink
test summary
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasdominik committed May 15, 2023
1 parent 4c87713 commit e333271
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/layers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,24 @@ function test_summary()
return n == 15
end

# test summary for abstract layer:
#
mutable struct AL <: AbstractLayer
w
function AL(i,o)
w = param(o,i)
return new(w)
end
end

function test_abstract_layer_summary()

al = AL(100,100)
n = summary(al)
return n == 1
end


function test_print()

ch = Chain(Conv(3, 3, 3, 100),
Expand Down
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ using Statistics: mean
@test test_get_set_rnn()

@test test_summary()
@test test_abstract_layer_summary()
@test test_print()


Expand Down

2 comments on commit e333271

@andreasdominik
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/83596

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.3.0 -m "<description of version>" e333271d94ec5eba1f3e6098a257c377c60a2ef1
git push origin v1.3.0

Please sign in to comment.