tensorrt不支持:tf.unpack,tf.slice,tf.tile,tf.expand_dims,tf.fill,tf.cast,tf.floor_div,tf.range

时间:2019-02-16 09:10:29

标签: tensorflow tensorrt

从tensorflow模型转换为uff模型(例如tf.unpack, tf.slice, tf.tile, tf.expand_dims, tf.fill, tf.cast, tf.floor_div, tf.range)时,tensorrt有很多不受支持的操作。有没有简单的方法可以解决问题? 当我将pb转换为uff模型时,这是警告:

Warning: No conversion function registered for layer: Unpack yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Unpack yet.
Warning: No conversion function registered for layer: Unpack yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: FloorDiv yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: FloorDiv yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Range yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Range yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Range yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Range yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Range yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Range yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Range yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Range yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Range yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Range yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: ExpandDims yet.
Warning: No conversion function registered for layer: Fill yet.
Warning: No conversion function registered for layer: Slice yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Range yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Tile yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Cast yet.
Warning: No conversion function registered for layer: Range yet.
Warning: No conversion function registered for layer: Unpack yet.

1 个答案:

答案 0 :(得分:0)

您可以尝试使用TF-TRT,该方法只允许转换TRT支持的部分图形,而其余部分保留在TF中。您可以在此处找到一些示例:https://github.com/tensorflow/tensorrt