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
19
19
Base. zero (:: TracedRNumber{T} ) where {T} = promote_to (TracedRNumber{T}, zero (T))
20
20
Base. one (:: TracedRNumber{T} ) where {T} = promote_to (TracedRNumber{T}, one (T))
21
21
22
+ Base. eps (:: Type{TracedRNumber{T}} ) where {T} = promote_to (TracedRNumber{T}, eps (T))
23
+
22
24
function Base. convert (:: Type{<:TracedRNumber{T}} , x:: Number ) where {T}
23
25
return promote_to (TracedRNumber{T}, T (x))
24
26
end
Original file line number Diff line number Diff line change 228
228
@inline primitive_type (:: Type{Float32} ) = 11
229
229
230
230
@static if isdefined (Core, :BFloat16 )
231
- @inline primitive_type (:: Type{BFloat16} ) = 16
231
+ @inline primitive_type (:: Type{Core. BFloat16} ) = 16
232
232
end
233
233
234
234
@inline primitive_type (:: Type{Float64} ) = 12
You can’t perform that action at this time.
0 commit comments