Replaced a reshape with a transpose