Skip to content

Commit dd0d02f

Browse files
committed
use Vararg support of @non_differentiable
1 parent 55f3407 commit dd0d02f

File tree

1 file changed

+10
-20
lines changed

1 file changed

+10
-20
lines changed

src/rulesets/Base/nondiff.jl

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
@non_differentiable accumulate(::Any, ::AbstractArray{Bool})
2929
@non_differentiable accumulate!(::Any, ::Any, ::AbstractArray{Bool})
30-
@non_differentiable cat(::AbstractArray{Bool})
30+
@non_differentiable cat(::AbstractArray{Bool}...)
3131
@non_differentiable circcopy!(::Any, ::AbstractArray{Bool})
3232
@non_differentiable circshift(::AbstractArray{Bool}, ::Any)
3333
@non_differentiable circshift!(::Any, ::AbstractArray{Bool}, ::Any)
@@ -45,38 +45,28 @@
4545
@non_differentiable eachslice(::AbstractArray{Bool})
4646
@non_differentiable fill(::AbstractArray{Bool})
4747
@non_differentiable fill!(::AbstractArray, ::Any)
48-
@non_differentiable findall(::AbstractArray{Bool})
49-
@non_differentiable findfirst(::AbstractArray{Bool})
50-
@non_differentiable findfirst(::Any, ::AbstractArray{Bool})
51-
@non_differentiable findlast(::AbstractArray{Bool})
52-
@non_differentiable findlast(::Any, ::AbstractArray{Bool})
5348
@non_differentiable findprev(::AbstractArray{Bool}, ::Any)
5449
@non_differentiable findprev(::Any, ::AbstractArray{Bool}, ::Any)
55-
@non_differentiable getindex(::AbstractArray{Bool}, ::Any)
56-
@non_differentiable hcat(::AbstractArray{Bool})
57-
@non_differentiable hvcat(::Any, ::AbstractArray{Bool})
50+
@non_differentiable getindex(::AbstractArray{Bool}, ::Any...)
51+
@non_differentiable hcat(::AbstractArray{Bool}...)
52+
@non_differentiable hvcat(::Any, ::AbstractArray{Bool}...)
5853
@non_differentiable isperm(::AbstractArray{Bool})
59-
# reverseind
6054
@non_differentiable invperm(::AbstractArray{Bool})
61-
@non_differentiable invpermute!(::AbstractArray{Bool}, ::Any)
55+
@non_differentiable invpermute!(::Any, ::AbstractArray{Bool})
6256
@non_differentiable mapslices(::Any, ::AbstractArray{Bool})
6357
@non_differentiable Matrix(::AbstractArray{Bool})
6458
@non_differentiable ndims(::AbstractArray{Bool})
6559
@non_differentiable parent(::AbstractArray{Bool})
6660
@non_differentiable parentindices(::AbstractArray{Bool})
67-
#@non_differentiable permute(::AbstractArray{Bool}, ::Any, ::Any)
6861
@non_differentiable permute!(::AbstractArray{Bool}, ::Any)
6962
@non_differentiable permutedims(::AbstractArray{Bool})
7063
@non_differentiable permutedims(::AbstractArray{Bool}, ::Any)
7164
@non_differentiable promote_shape(::AbstractArray{Bool}, ::Any)
72-
@non_differentiable repeat(::AbstractArray{Bool})
73-
@non_differentiable repeat(::AbstractArray{Bool}, ::Any)
74-
@non_differentiable repeat(::AbstractArray{Bool}, ::Any, ::Any)
75-
@non_differentiable reshape(::AbstractArray{Bool}, ::Any)
76-
# requires Vararg support
77-
#@non_differentiable reshape(::AbstractArray{Bool}, ::Vararg{Any})
65+
@non_differentiable repeat(::AbstractArray{Bool}, ::Any...)
66+
@non_differentiable reshape(::AbstractArray{Bool}, ::Any...)
7867
@non_differentiable reverse(::AbstractArray{Bool})
7968
@non_differentiable reverse!(::AbstractArray{Bool})
69+
@non_differentiable reverseind(::AbstractArray{Bool}, ::Any)
8070
@non_differentiable rot180(::AbstractArray{Bool})
8171
@non_differentiable rot180(::AbstractArray{Bool}, ::Any)
8272
@non_differentiable rotl90(::AbstractArray{Bool})
@@ -86,10 +76,10 @@
8676
@non_differentiable selectdim(::AbstractArray{Bool}, ::Any, ::Any)
8777
@non_differentiable setindex!(::AbstractArray{Bool}, ::Any, ::Any)
8878
@non_differentiable similar(::AbstractArray{Bool})
89-
@non_differentiable similar(::AbstractArray{Bool}, ::Any)
79+
@non_differentiable similar(::AbstractArray{Bool}, ::Any, ::Any...)
9080
@non_differentiable stride(::AbstractArray{Bool}, ::Any)
9181
@non_differentiable strides(::AbstractArray{Bool})
92-
@non_differentiable vcat(::AbstractArray{Bool})
82+
@non_differentiable vcat(::AbstractArray{Bool}...)
9383
@non_differentiable vec(::AbstractArray{Bool})
9484
@non_differentiable Vector(::AbstractArray{Bool})
9585

0 commit comments

Comments
 (0)