-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Fix shape and reformat free tensor handling in the input byte siz…
…e check (#7444)
- Loading branch information
Showing
11 changed files
with
312 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
qa/L0_model_config/autofill_noplatform/tensorrt/bad_input_non_linear_format_io/config.pbtxt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
max_batch_size: 8 | ||
input [ | ||
{ | ||
name: "INPUT0" | ||
data_type: TYPE_FP32 | ||
dims: [ 16 ] | ||
is_non_linear_format_io: true | ||
}, | ||
{ | ||
name: "INPUT1" | ||
data_type: TYPE_FP32 | ||
dims: [ 16 ] | ||
} | ||
] | ||
output [ | ||
{ | ||
name: "OUTPUT0" | ||
data_type: TYPE_FP32 | ||
dims: [ 16 ] | ||
}, | ||
{ | ||
name: "OUTPUT1" | ||
data_type: TYPE_FP32 | ||
dims: [ 16 ] | ||
} | ||
] |
1 change: 1 addition & 0 deletions
1
qa/L0_model_config/autofill_noplatform/tensorrt/bad_input_non_linear_format_io/expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
'INPUT0' uses a linear IO format, but 'is_non_linear_format_io' is incorrectly set to true in the model configuration. |
26 changes: 26 additions & 0 deletions
26
qa/L0_model_config/autofill_noplatform/tensorrt/bad_outut_non_linear_format_io/config.pbtxt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
max_batch_size: 8 | ||
input [ | ||
{ | ||
name: "INPUT0" | ||
data_type: TYPE_FP32 | ||
dims: [ 16 ] | ||
}, | ||
{ | ||
name: "INPUT1" | ||
data_type: TYPE_FP32 | ||
dims: [ 16 ] | ||
} | ||
] | ||
output [ | ||
{ | ||
name: "OUTPUT0" | ||
data_type: TYPE_FP32 | ||
dims: [ 16 ] | ||
}, | ||
{ | ||
name: "OUTPUT1" | ||
data_type: TYPE_FP32 | ||
dims: [ 16 ] | ||
is_non_linear_format_io: true | ||
} | ||
] |
1 change: 1 addition & 0 deletions
1
qa/L0_model_config/autofill_noplatform/tensorrt/bad_outut_non_linear_format_io/expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
'OUTPUT1' uses a linear IO format, but 'is_non_linear_format_io' is incorrectly set to true in the model configuration. |
57 changes: 57 additions & 0 deletions
57
...model_config/autofill_noplatform_success/tensorrt/no_config_non_linear_format_io/expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: "no_config_non_linear_format_io" | ||
platform: "tensorrt_plan" | ||
backend: "tensorrt" | ||
version_policy { | ||
latest { | ||
num_versions: 1 | ||
} | ||
} | ||
max_batch_size: 8 | ||
input { | ||
name: "INPUT0" | ||
data_type: TYPE_FP32 | ||
dims: -1 | ||
dims: 2 | ||
dims: 1 | ||
is_non_linear_format_io: true | ||
} | ||
input { | ||
name: "INPUT1" | ||
data_type: TYPE_FP32 | ||
dims: -1 | ||
dims: 2 | ||
dims: 1 | ||
is_non_linear_format_io: true | ||
} | ||
output { | ||
name: "OUTPUT0" | ||
data_type: TYPE_FP32 | ||
dims: -1 | ||
dims: 2 | ||
dims: 1 | ||
} | ||
output { | ||
name: "OUTPUT1" | ||
data_type: TYPE_FP32 | ||
dims: -1 | ||
dims: 2 | ||
dims: 1 | ||
} | ||
optimization { | ||
input_pinned_memory { | ||
enable: true | ||
} | ||
output_pinned_memory { | ||
enable: true | ||
} | ||
} | ||
dynamic_batching { | ||
preferred_batch_size: 8 | ||
} | ||
instance_group { | ||
name: "no_config_non_linear_format_io" | ||
kind: KIND_GPU | ||
count: 1 | ||
gpus: 0 | ||
} | ||
default_model_filename: "model.plan" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters