fix layout issue in dnn 7.2 or above