Cannot use trtexec to convert onnx to engine

/usr/src/tensorrt/bin/trtexec --onnx=fcn.onnx --minShapes=input:1x3x416x416 --optShapes=input:8x3x416x416 --maxShapes=input:8x3x416x416 --workspace=4096 --saveEngine=yolov4.engine --fp16 --verbose

Input filename: fcn.onnx
ONNX IR version: 0.0.4
Opset version: 9
Producer name: pytorch
Producer version: 1.2
Domain:
Model version: 0
Doc string:

ERROR: builtin_op_importers.cpp:3460 In function importUpsample:
[8] Assertion failed: scales_input.is_weights()
[04/12/2021-10:45:07] [E] Failed to parse onnx file
[04/12/2021-10:45:07] [E] Parsing model failed
[04/12/2021-10:45:07] [E] Engine creation failed
[04/12/2021-10:45:07] [E] Engine set up failed