Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There are lots of warnings when used with Julia 0.4 #22

Closed
lindahua opened this issue Apr 12, 2015 · 3 comments
Closed

There are lots of warnings when used with Julia 0.4 #22

lindahua opened this issue Apr 12, 2015 · 3 comments

Comments

@lindahua
Copy link

julia> Pkg.test("ForwardDiff")
INFO: Testing ForwardDiff
Running tests:
 * dual_fad.jl
Warning: New definition 
    *(T<:Real,ForwardDiff.GraDual{T<:Real,n}) at /Users/dhlin/.julia/v0.4/ForwardDiff/src/typed_fad/GraDual.jl:108
is ambiguous with: 
    *(Bool,T<:Number) at bool.jl:47.
To fix, define 
    *(Bool,_<:ForwardDiff.GraDual{Bool,n})
before the new definition.
Warning: New definition 
    *(T<:Real,ForwardDiff.FADHessian{T<:Real,n}) at /Users/dhlin/.julia/v0.4/ForwardDiff/src/typed_fad/FADHessian.jl:108
is ambiguous with: 
    *(Bool,T<:Number) at bool.jl:47.
To fix, define 
    *(Bool,_<:ForwardDiff.FADHessian{Bool,n})
before the new definition.
Warning: New definition 
    *(T<:Real,ForwardDiff.FADTensor{T<:Real,n}) at /Users/dhlin/.julia/v0.4/ForwardDiff/src/typed_fad/FADTensor.jl:133
is ambiguous with: 
    *(Bool,T<:Number) at bool.jl:47.
To fix, define 
    *(Bool,_<:ForwardDiff.FADTensor{Bool,n})
before the new definition.
 * GraDual.jl
WARNING: oftype{T}(::Type{T},c) is deprecated, use convert(T,c) instead.
 in depwarn at ./deprecated.jl:40
 in oftype at deprecated.jl:29
 in log2 at /Users/dhlin/.julia/v0.4/ForwardDiff/src/typed_fad/GraDual.jl:149
 in f at /Users/dhlin/.julia/v0.4/ForwardDiff/test/GraDual.jl:90
 in include at ./boot.jl:250
 in include_from_node1 at ./loading.jl:129
 in anonymous at no file:8
 in include at ./boot.jl:250
 in include_from_node1 at loading.jl:129
 in process_options at ./client.jl:305
 in _start at ./client.jl:389
WARNING: oftype{T}(::Type{T},c) is deprecated, use convert(T,c) instead.
 in depwarn at ./deprecated.jl:40
 in oftype at deprecated.jl:29
 in log10 at /Users/dhlin/.julia/v0.4/ForwardDiff/src/typed_fad/GraDual.jl:150
 in f at /Users/dhlin/.julia/v0.4/ForwardDiff/test/GraDual.jl:90
 in include at ./boot.jl:250
 in include_from_node1 at ./loading.jl:129
 in anonymous at no file:8
 in include at ./boot.jl:250
 in include_from_node1 at loading.jl:129
 in process_options at ./client.jl:305
 in _start at ./client.jl:389
 * FADHessian.jl
WARNING: oftype{T}(::Type{T},c) is deprecated, use convert(T,c) instead.
 in depwarn at ./deprecated.jl:40
 in oftype at deprecated.jl:29
 in log2 at /Users/dhlin/.julia/v0.4/ForwardDiff/src/typed_fad/FADHessian.jl:212
 in f at /Users/dhlin/.julia/v0.4/ForwardDiff/test/FADHessian.jl:179
 in include at ./boot.jl:250
 in include_from_node1 at ./loading.jl:129
 in anonymous at no file:8
 in include at ./boot.jl:250
 in include_from_node1 at loading.jl:129
 in process_options at ./client.jl:305
 in _start at ./client.jl:389
WARNING: oftype{T}(::Type{T},c) is deprecated, use convert(T,c) instead.
 in depwarn at ./deprecated.jl:40
 in oftype at deprecated.jl:29
 in log10 at /Users/dhlin/.julia/v0.4/ForwardDiff/src/typed_fad/FADHessian.jl:225
 in f at /Users/dhlin/.julia/v0.4/ForwardDiff/test/FADHessian.jl:179
 in include at ./boot.jl:250
 in include_from_node1 at ./loading.jl:129
 in anonymous at no file:8
 in include at ./boot.jl:250
 in include_from_node1 at loading.jl:129
 in process_options at ./client.jl:305
 in _start at ./client.jl:389
 * FADTensor.jl
WARNING: int64(x::FloatingPoint) is deprecated, use round(Int64,x) instead.
 in depwarn at ./deprecated.jl:40
 in int64 at deprecated.jl:29
 in t2h at /Users/dhlin/.julia/v0.4/ForwardDiff/src/typed_fad/FADTensor.jl:104
 in ^ at /Users/dhlin/.julia/v0.4/ForwardDiff/src/typed_fad/FADTensor.jl:221
 in f at /Users/dhlin/.julia/v0.4/ForwardDiff/test/FADTensor.jl:8
 in include at ./boot.jl:250
 in include_from_node1 at ./loading.jl:129
 in anonymous at no file:8
 in include at ./boot.jl:250
 in include_from_node1 at loading.jl:129
 in process_options at ./client.jl:305
 in _start at ./client.jl:389
WARNING: oftype{T}(::Type{T},c) is deprecated, use convert(T,c) instead.
 in depwarn at ./deprecated.jl:40
 in oftype at deprecated.jl:29
 in log2 at /Users/dhlin/.julia/v0.4/ForwardDiff/src/typed_fad/FADTensor.jl:327
 in f at /Users/dhlin/.julia/v0.4/ForwardDiff/test/FADTensor.jl:347
 in include at ./boot.jl:250
 in include_from_node1 at ./loading.jl:129
 in anonymous at no file:8
 in include at ./boot.jl:250
 in include_from_node1 at loading.jl:129
 in process_options at ./client.jl:305
 in _start at ./client.jl:389
WARNING: oftype{T}(::Type{T},c) is deprecated, use convert(T,c) instead.
 in depwarn at ./deprecated.jl:40
 in oftype at deprecated.jl:29
 in log10 at /Users/dhlin/.julia/v0.4/ForwardDiff/src/typed_fad/FADTensor.jl:349
 in f at /Users/dhlin/.julia/v0.4/ForwardDiff/test/FADTensor.jl:347
 in include at ./boot.jl:250
 in include_from_node1 at ./loading.jl:129
 in anonymous at no file:8
 in include at ./boot.jl:250
 in include_from_node1 at loading.jl:129
 in process_options at ./client.jl:305
 in _start at ./client.jl:389
INFO: ForwardDiff tests passed
INFO: No packages to install, update or remove
@papamarkou
Copy link
Contributor

Thanks @lindahua, I am travelling these days, will look at this soon.

@papamarkou
Copy link
Contributor

Hi @lindahua, sorry for the late reply, I fixed this.

@lindahua
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants