Skip to content

Commit 5116c95

Browse files
Add nondiff rules for one ones zero zeros (#465)
1 parent 93eb113 commit 5116c95

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ChainRules"
22
uuid = "082447d4-558c-5d27-93f4-14fc19e9eca2"
3-
version = "0.8.18"
3+
version = "0.8.19"
44

55
[deps]
66
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"

src/rulesets/Base/nondiff.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,3 +439,8 @@ VERSION >= v"1.1" && @non_differentiable Sys.isopenbsd(::Symbol)
439439
@non_differentiable Threads.threadid(::Task)
440440

441441
@non_differentiable similar(::Any...)
442+
443+
@non_differentiable one(::Any)
444+
@non_differentiable ones(::Any...)
445+
@non_differentiable zero(::Any)
446+
@non_differentiable zeros(::Any...)

0 commit comments

Comments
 (0)