diff --git a/src/Dagger.jl b/src/Dagger.jl index f98571ffc..4cc2fab4b 100644 --- a/src/Dagger.jl +++ b/src/Dagger.jl @@ -3,6 +3,7 @@ module Dagger using Distributed, SharedArrays import Base: collect, adjoint, reduce +import Distributed: procs using LinearAlgebra import LinearAlgebra: transpose diff --git a/src/lib/logging.jl b/src/lib/logging.jl index c531fc1d8..1a744e642 100644 --- a/src/lib/logging.jl +++ b/src/lib/logging.jl @@ -196,7 +196,7 @@ function next_state(state::State, event::Event{:finish}) state end next_state(state::State, events::AbstractArray) = - foldl(next_state, state, events) + foldl(next_state, events, init=state) # util