ReplaceVariableWithLayer
solve linear equation systems
fix