public ActivationLayerBackwardCompute(ActivationLayerForwardCompute forwardCompute, ConnectedLayer connectedLayer) : base(forwardCompute, connectedLayer) { Contract.Requires(forwardCompute != null); Contract.Requires(connectedLayer != null); Contract.Requires((connectedLayer.StructuralElementFlags & NNStructuralElement.BackwardImplementation) != 0 && (connectedLayer.StructuralElementFlags & NNStructuralElement.GradientInformation) != 0); Function = forwardCompute.Function; forwardCompute.FeedForwardOps.Initialize(this); forwardCompute.BPTTOps.Initialize(this); }
public void Initialize(ActivationLayerForwardCompute forwardCompute) { this.forwardCompute = forwardCompute; }