Skip to content

Commit 522cdff

Browse files
author
xiexinch
committed
fix unittest
1 parent 78b56b1 commit 522cdff

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mmseg/models/decode_heads/dpt_head.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import copy
21
import math
32

43
import torch
@@ -141,7 +140,7 @@ def __init__(self,
141140
order=('act', 'conv', 'norm'))
142141

143142
def forward(self, inputs):
144-
inputs_ = copy.deepcopy(inputs)
143+
inputs_ = inputs.clone()
145144
x = self.conv1(inputs)
146145
x = self.conv2(x)
147146
return x + inputs_

0 commit comments

Comments
 (0)