Skip to content

Assertion failed: (transformationMode != "tf_half_pixel_for_nn" || nearest_mode == "round_prefer_floor") && "This version of TensorRT only support round_prefer_floor nearest mode in tf_half_pixel_for_nn!" #913

@RodrigoGoni

Description

@RodrigoGoni

Description

[04/22/2023-00:47:09] [E] [TRT] ModelImporter.cpp:768: While parsing node number 117 [Resize -> "Resize__610:0"]:
[04/22/2023-00:47:09] [E] [TRT] ModelImporter.cpp:769: --- Begin node ---
[04/22/2023-00:47:09] [E] [TRT] ModelImporter.cpp:770: input: "StatefulPartitionedCall/model_1/relu1/Relu:0"
input: "const_empty_float__602"
input: "const_empty_float__602"
input: "Concat__609:0"
output: "Resize__610:0"
name: "Resize__610"
op_type: "Resize"
attribute {
name: "coordinate_transformation_mode"
s: "tf_half_pixel_for_nn"
type: STRING
}
attribute {
name: "exclude_outside"
i: 0
type: INT
}
attribute {
name: "mode"
s: "nearest"
type: STRING
}
attribute {
name: "nearest_mode"
s: "floor"
type: STRING
}
domain: ""

[04/22/2023-00:47:09] [E] [TRT] ModelImporter.cpp:771: --- End node ---
[04/22/2023-00:47:09] [E] [TRT] ModelImporter.cpp:774: ERROR: builtin_op_importers.cpp:3770 In function importResize:
[8] Assertion failed: (transformationMode != "tf_half_pixel_for_nn" || nearest_mode == "round_prefer_floor") && "This version of TensorRT only support round_prefer_floor nearest mode in tf_half_pixel_for_nn!"
[04/22/2023-00:47:09] [E] Failed to parse onnx file

Environment

TensorRT Version:8.6
ONNX-TensorRT Version / Branch:latest
GPU Type nvidia rtx A5000
Nvidia Driver Version 525:
CUDA Version 12.0
CUDNN Version 8.6
L. Ubuntu + 20.04

TensorFlow + TF2ONNX Version (if applicable): latest #################>>>>>>>>>>>>> changing to previous version the bug goes away but many hours of work

Relevant Files

Steps To Reproduce

build tensorrt
/usr/src/tensorrt/bin
./trtexec --onnx=<model_path> --saveEngine=<engine_path> --fp16 --shapes=input_1:1x256x256x3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions