From 8b0e08b796f7b5c9431088a87f87f3cd369c584a Mon Sep 17 00:00:00 2001 From: Frank Schaefer Date: Thu, 19 Aug 2021 23:10:52 +0200 Subject: [PATCH] do not differentiate through the construction of BitArray --- src/rulesets/Base/nondiff.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rulesets/Base/nondiff.jl b/src/rulesets/Base/nondiff.jl index 065aaeb6a..ed08f01dd 100644 --- a/src/rulesets/Base/nondiff.jl +++ b/src/rulesets/Base/nondiff.jl @@ -84,6 +84,7 @@ @non_differentiable Vector(::AbstractArray{Bool}) @non_differentiable Array(::AbstractArray{Bool}) +@non_differentiable BitArray(::Any) @non_differentiable IndexStyle(::AbstractArray{Bool}) #####