Skip to content

Commit 8120ab7

Browse files
committed
fix flops error
1 parent df3451a commit 8120ab7

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

deploy/python/infer.py

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def __init__(self, args):
8686
precision_mode = precision_map[args.precision]
8787

8888
if args.use_trt:
89+
logger.info("Use TRT")
8990
pred_cfg.enable_tensorrt_engine(
9091
workspace_size=1 << 30,
9192
max_batch_size=1,

paddleseg/models/backbones/resnet_vd.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def forward(self, inputs):
134134
else:
135135
short = self.short(inputs)
136136

137-
y = self.add(x=short, y=conv2)
137+
y = self.add(short, conv2)
138138
y = self.relu(y)
139139
return y
140140

@@ -188,7 +188,7 @@ def forward(self, inputs):
188188
short = inputs
189189
else:
190190
short = self.short(inputs)
191-
y = self.add(x=short, y=conv1)
191+
y = self.add(short, conv1)
192192
y = self.relu(y)
193193

194194
return y

paddleseg/models/layers/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
from .pyramid_pool import ASPPModule, PPModule
1818
from .attention import AttentionBlock
1919
from .nonlocal2d import NonLocal2D
20-
from .wrap_function import *
20+
from .wrap_functions import *

0 commit comments

Comments
 (0)