Skip to content

Commit f484f22

Browse files
committed
lenet5.py migrated to trt8
1 parent d0eb871 commit f484f22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lenet/lenet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import sys
55

66
import numpy as np
7-
import pycuda.autoinit
7+
import pycuda.autoinit # noqa: F401
88
import pycuda.driver as cuda
99
import tensorrt as trt
1010

@@ -119,7 +119,7 @@ def createLenetEngine(maxBatchSize, builder, config, dt):
119119

120120
# Build engine
121121
builder.max_batch_size = maxBatchSize
122-
builder.max_workspace_size = 1 << 20
122+
config.max_workspace_size = 1 << 20
123123
engine = builder.build_engine(network, config)
124124

125125
del network

0 commit comments

Comments
 (0)