Skip to content

Commit d224a50

Browse files
Format code (#1403)
Co-authored-by: enzyme-ci-bot[bot] <78882869+enzyme-ci-bot[bot]@users.noreply.github.com>
1 parent 1281f22 commit d224a50

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

lib/ReactantCore/src/ReactantCore.jl

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -326,15 +326,9 @@ function trace_for(expr; track_numbers, checkpointing, mincut)
326326
$bounds_defs
327327

328328
if $(within_compile)()
329-
$start_sym = $(ReactantCore.promote_to_traced)(
330-
$start_sym,
331-
)
332-
$limit_sym = $(ReactantCore.promote_to_traced)(
333-
$limit_sym,
334-
)
335-
$step_sym = $(ReactantCore.promote_to_traced)(
336-
$step_sym,
337-
)
329+
$start_sym = $(ReactantCore.promote_to_traced)($start_sym)
330+
$limit_sym = $(ReactantCore.promote_to_traced)($limit_sym)
331+
$step_sym = $(ReactantCore.promote_to_traced)($step_sym)
338332
end
339333

340334
local $counter = zero($start_sym)

src/TracedUtils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ using ..Reactant:
1515
ReactantPrimitive,
1616
Ops
1717
using ReactantCore: ReactantCore
18-
using ReactantCore: MissingTracedValue, is_traced, materialize_traced_array, promote_to_traced
18+
using ReactantCore:
19+
MissingTracedValue, is_traced, materialize_traced_array, promote_to_traced
1920
using Functors: Functors
2021

2122
function ReactantCore.promote_to_traced(x)
2223
return promote_to(Reactant.TracedRNumber{Reactant.unwrapped_eltype(typeof(x))}, x)
2324
end
2425

25-
2626
ReactantCore.materialize_traced_array(x::AbstractArray) = x
2727

2828
ReactantCore.materialize_traced_array(x::TracedRArray) = x

0 commit comments

Comments
 (0)