DNNPlugin: INT32 is not yet supported AND Assertion failed: d.nbDims >= 1 ../rtSafe/safeHelpers.cpp:91 Aborting

Hi, i try to generate bin from onnx using tensorrt_optimizer and add plugins, here’s my command

/home/tyan/workspace/driveworks-jafar/driveworks-4.0/tools/dnn/tensorRT_optimization --pluginConfig=/home/tyan/workspace/driveworks-jafar/driveworks-4.0/samples/src/dnn/plugin_dir/plugin.json  --modelType=onnx --onnxFile=/home/tyan/workspace/driveworks-jafar/driveworks-4.0/samples/src/dnn/plugin_dir/pfe_baseline32000_sim.onnx --out=/home/tyan/workspace/driveworks-jafar/driveworks-4.0/samples/src/dnn/plugin_dir/pfe_baseline32000_sim.bin

But it returns error

[10-06-2023 16:52:41] ModelImporter.cpp:108: Parsing node: Tile_16 [Tile]
[10-06-2023 16:52:41] ModelImporter.cpp:124: Searching for input: 37
[10-06-2023 16:52:41] ModelImporter.cpp:124: Searching for input: 34
[10-06-2023 16:52:41] ModelImporter.cpp:130: Tile_16 [Tile] inputs: [37 -> ()], [34 -> (3)], 
[10-06-2023 16:52:41] ModelImporter.cpp:140: No importer registered for op: Tile. Attempting to import as plugin.
[10-06-2023 16:52:41] builtin_op_importers.cpp:2191: Searching for plugin: Tile, plugin_version: 1, plugin_namespace: 
Getting plugin version
Getting plugin namespace
Getting plugin field collection
Creating plugin
Deserializing from field collection
[10-06-2023 16:52:41] builtin_op_importers.cpp:2208: Successfully created plugin: Tile
Getting num outputs
Num outputs: 1
[10-06-2023 16:52:41] DNNPlugin: INT32 is not yet supported.
Getting output precision
Cloning plugin
Getting num outputs
Num outputs: 1
Destroying plugin
Destroyed plugin
[10-06-2023 16:52:41] ImporterContext.hpp:122: Registering layer: Tile_16 for ONNX node: Tile_16
[10-06-2023 16:52:41] Assertion failed: d.nbDims >= 1

terminate called after throwing an instance of 'nvinfer1::AssertionFailure'
  what():  std::exception
Aborted (core dumped)

Any idea what is causing the problem and how to solve it?
Notes: I cant upgrade the tensorrt

Here’s my plugin and onnx file
pfe_baseline32000_sim.onnx (39.8 KB)
TilePlugin.cu (16.4 KB)
libdnn_tile_plugin_tpat.so (743.2 KB)

Please provide the following info (check/uncheck the boxes after creating this topic):
Software Version
DRIVE OS Linux 5.2.6
DRIVE OS Linux 5.2.6 and DriveWorks 4.0
DRIVE OS Linux 5.2.0
DRIVE OS Linux 5.2.0 and DriveWorks 3.5
NVIDIA DRIVE™ Software 10.0 (Linux)
NVIDIA DRIVE™ Software 9.0 (Linux)
other DRIVE OS version

Target Operating System

Hardware Platform
NVIDIA DRIVE™ AGX Xavier DevKit (E3550)
NVIDIA DRIVE™ AGX Pegasus DevKit (E3550)

SDK Manager Version

Host Machine Version
native Ubuntu 18.04

Where is the ‘plugin.json’ file? Thanks.

its okay, i solved it.

Found that the previous layer’s shape not defined correctly. Thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.