You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user_guide/model_configuration.md
+34
Original file line number
Diff line number
Diff line change
@@ -598,6 +598,40 @@ input1: [4, 4, 6] <== shape of this tensor [3]
598
598
Currently, only TensorRT supports shape tensors. Read [Shape Tensor I/O](https://docs.nvidia.com/deeplearning/tensorrt/developer-guide/index.html#shape_tensor_io)
599
599
to learn more about shape tensors.
600
600
601
+
## Non-Linear I/O Formats
602
+
603
+
For models that process input or output data in non-linear formats, the _is_non_linear_format_io_ property
604
+
must be set. The following example model configuration shows how to specify that INPUT0 and INPUT1 use non-linear I/O data formats.
605
+
606
+
```
607
+
name: "mytensorrtmodel"
608
+
platform: "tensorrt_plan"
609
+
max_batch_size: 8
610
+
input [
611
+
{
612
+
name: "INPUT0"
613
+
data_type: TYPE_FP16
614
+
dims: [ 3,224,224 ]
615
+
is_non_linear_format_io: true
616
+
},
617
+
{
618
+
name: "INPUT1"
619
+
data_type: TYPE_FP16
620
+
dims: [ 3,224,224 ]
621
+
is_non_linear_format_io: true
622
+
}
623
+
]
624
+
output [
625
+
{
626
+
name: "OUTPUT0"
627
+
data_type: TYPE_FP16
628
+
dims: [ 1,3 ]
629
+
}
630
+
]
631
+
```
632
+
633
+
Currently, only TensorRT supports this property. To learn more about I/O formats, refer to the [I/O Formats documentation](https://docs.nvidia.com/deeplearning/tensorrt/developer-guide/index.html#reformat-free-network-tensors).
0 commit comments