Dictating how gradients are handled when paths are merged