Out of XX is a view and its base or another view of its base has been modified inplace

When I change my model to DataParallel, there are some quesitons like this:

RuntimeError: Output 186 of BroadcastBackward is a view and its base or another view of its base has been modified inplace. This view is the output of a function that returns multiple views. Such functions do not allow the output views to be modified inplace. You should replace the inplace operation by an out-of-place one.

How should I deal with this problem?