Skip to content

Commit 0c0302c

Browse files
committed
fix Zygote Irrational errors
1 parent 6e8bbe1 commit 0c0302c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/common.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## Generic ##
22

3+
Base.one(::Irrational) = 1
4+
35
function Base.fill(
46
value::TrackedReal,
57
dims::Vararg{Union{Integer, AbstractUnitRange}},

0 commit comments

Comments
 (0)