Closed rened closed 6 years ago
Fixed in #91
It fails if dims argument exists.
Yes, with #91
@test gradcheck(std, randn(Float64,2,3))
@test gradcheck(std, randn(Float32,2,3))
works now, but std/var does not work with dims for neither Float32 nor Float64:
@test gradcheck(std, randn(Float64,2,3), kwargs=[:dims=>1]) # fails
@test gradcheck(std, randn(Float32,2,3), kwargs=[:dims=>1]) # fails
@ekinakyurek we should test with Float32 arrays in other files as well to check for type consistency. On Sun, Aug 19, 2018 at 6:46 AM Rene Donner notifications@github.com wrote:
Yes, with #91 https://github.com/denizyuret/AutoGrad.jl/pull/91
@test gradcheck(std, randn(Float64,2,3))@test gradcheck(std, randn(Float32,2,3))
works now, but std/var does not work with dims for neither Float32 nor Float64:
@test gradcheck(std, randn(Float64,2,3), kwargs=[:dims=>1]) # fails@test gradcheck(std, randn(Float32,2,3), kwargs=[:dims=>1]) # fails
— You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub https://github.com/denizyuret/AutoGrad.jl/issues/87#issuecomment-414119114, or mute the thread https://github.com/notifications/unsubscribe-auth/ABvNpg9jpdsOCg7u269Ln7AABi4eAvtCks5uSUIQgaJpZM4WCmLQ .
Fixed this in latest master. Please check and if it is working add these tests to test/statistics.jl.
Thanks, this works! Will add tests.
No need, I am currently adding different type tests to all test files.
On 19 Aug 2018, at 09:53, Rene Donner notifications@github.com wrote:
Thanks, this works! Will add tests.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/denizyuret/AutoGrad.jl/issues/87#issuecomment-414129356, or mute the thread https://github.com/notifications/unsubscribe-auth/AOpr8deNAx_mtAYvM5CJDMv9sF9wJXzLks5uSW3IgaJpZM4WCmLQ.
For example, when adding the following lines to
test/statistics.jl
, 6 of these tests fail:It seems that the eltype of the input data is not taken into account when allocating the output: