merge and torch