execution.jl

FluxTraining/callbacks/execution.jl is a source file in module FluxTraining

			
			
			
			abstract
			 
			type
			 

	
			CallbackRunner
			 
			end
			

			

			
			
			struct
			
			 

	
			LinearRunner
			 
			<:
			 

	
			CallbackRunner
			
			 
			end
			

			

			
			function
			 
			

	
			handle
			(
			
			runner
			::

	
			LinearRunner
			,
			 
			
			event
			::

	
			Event
			,
			 
			phase
			,
			 
			learner
			)
			
			
    
			
			idxs
			 
			=
			 
			
			
			
			ChainRulesCore
			.
			
			ignore_derivatives
			(
			)
			 
			do
			
			
        
			
			
			topological_sort_by_dfs
			(
			
			
			learner
			.
			
			callbacks
			.
			
			graph
			)
			
    
			end
			
    
			
			for
			
			 
			i
			 
			in
			 
			idxs
			
			
        
			
			_on
			(
			event
			,
			 
			phase
			,
			 
			
			
			
			learner
			.
			
			callbacks
			.
			
			cbs
			[
			i
			]
			,
			 
			learner
			)
			
    
			end
			

			end