File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ Base.getindex(a::TracedRNumber{T}) where {T} = a
1919Base. zero (:: TracedRNumber{T} ) where {T} = promote_to (TracedRNumber{T}, zero (T))
2020Base. one (:: TracedRNumber{T} ) where {T} = promote_to (TracedRNumber{T}, one (T))
2121
22+ Base. eps (:: Type{TracedRNumber{T}} ) where {T} = promote_to (TracedRNumber{T}, eps (T))
23+
2224function Base. convert (:: Type{<:TracedRNumber{T}} , x:: Number ) where {T}
2325 return promote_to (TracedRNumber{T}, T (x))
2426end
Original file line number Diff line number Diff line change 228228@inline primitive_type (:: Type{Float32} ) = 11
229229
230230@static if isdefined (Core, :BFloat16 )
231- @inline primitive_type (:: Type{BFloat16} ) = 16
231+ @inline primitive_type (:: Type{Core. BFloat16} ) = 16
232232end
233233
234234@inline primitive_type (:: Type{Float64} ) = 12
You can’t perform that action at this time.
0 commit comments