Spencer Torkelson hit a walk-off home run and Riley Greene had two hits, including a two-run homer, to rally the Detroit Tigers to a 5-4 win over the Milwaukee Brewers.