forked from triton-inference-server/server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unit-testing for savedmodel configuration.
- Loading branch information
David Goodwin
committed
Nov 14, 2018
1 parent
c00d67d
commit fadfbbe
Showing
33 changed files
with
382 additions
and
70 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
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
Binary file added
BIN
+1.37 KB
...flow/testdata/savedmodel_autofill_sanity/bad_input_dims/1/model.savedmodel/saved_model.pb
Binary file not shown.
25 changes: 25 additions & 0 deletions
25
src/servables/tensorflow/testdata/savedmodel_autofill_sanity/bad_input_dims/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,25 @@ | ||
max_batch_size: 1 | ||
input [ | ||
{ | ||
name: "INPUT0" | ||
data_type: TYPE_INT32 | ||
dims: [ 16, 1 ] | ||
}, | ||
{ | ||
name: "INPUT1" | ||
data_type: TYPE_INT32 | ||
dims: [ 16 ] | ||
} | ||
] | ||
output [ | ||
{ | ||
name: "OUTPUT0" | ||
data_type: TYPE_INT8 | ||
dims: [ 16 ] | ||
}, | ||
{ | ||
name: "OUTPUT1" | ||
data_type: TYPE_INT8 | ||
dims: [ 16 ] | ||
} | ||
] |
1 change: 1 addition & 0 deletions
1
src/servables/tensorflow/testdata/savedmodel_autofill_sanity/bad_input_dims/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 @@ | ||
Invalid argument: unable to load model 'bad_input_dims', input 'INPUT0' dims [-1,16] don't match configuration dims [16,1] |
Binary file added
BIN
+1.37 KB
...flow/testdata/savedmodel_autofill_sanity/bad_input_type/1/model.savedmodel/saved_model.pb
Binary file not shown.
25 changes: 25 additions & 0 deletions
25
src/servables/tensorflow/testdata/savedmodel_autofill_sanity/bad_input_type/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,25 @@ | ||
max_batch_size: 1 | ||
input [ | ||
{ | ||
name: "INPUT0" | ||
data_type: TYPE_INT32 | ||
dims: [ 16 ] | ||
}, | ||
{ | ||
name: "INPUT1" | ||
data_type: TYPE_FP32 | ||
dims: [ 16 ] | ||
} | ||
] | ||
output [ | ||
{ | ||
name: "OUTPUT0" | ||
data_type: TYPE_INT8 | ||
dims: [ 16 ] | ||
}, | ||
{ | ||
name: "OUTPUT1" | ||
data_type: TYPE_INT8 | ||
dims: [ 16 ] | ||
} | ||
] |
1 change: 1 addition & 0 deletions
1
src/servables/tensorflow/testdata/savedmodel_autofill_sanity/bad_input_type/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 @@ | ||
Invalid argument: unable to load model 'bad_input_type', input 'INPUT1' data-type DT_INT32 doesn't match configuration data-type TYPE_FP32 |
Binary file added
BIN
+1.37 KB
...low/testdata/savedmodel_autofill_sanity/bad_output_dims/1/model.savedmodel/saved_model.pb
Binary file not shown.
25 changes: 25 additions & 0 deletions
25
src/servables/tensorflow/testdata/savedmodel_autofill_sanity/bad_output_dims/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,25 @@ | ||
max_batch_size: 1 | ||
input [ | ||
{ | ||
name: "INPUT0" | ||
data_type: TYPE_INT32 | ||
dims: [ 16 ] | ||
}, | ||
{ | ||
name: "INPUT1" | ||
data_type: TYPE_INT32 | ||
dims: [ 16 ] | ||
} | ||
] | ||
output [ | ||
{ | ||
name: "OUTPUT0" | ||
data_type: TYPE_INT8 | ||
dims: [ 16 ] | ||
}, | ||
{ | ||
name: "OUTPUT1" | ||
data_type: TYPE_INT8 | ||
dims: [ 1 ] | ||
} | ||
] |
1 change: 1 addition & 0 deletions
1
src/servables/tensorflow/testdata/savedmodel_autofill_sanity/bad_output_dims/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 @@ | ||
Invalid argument: unable to load model 'bad_output_dims', output 'OUTPUT1' dims [-1,16] don't match configuration dims [1] |
Binary file added
BIN
+1.37 KB
...low/testdata/savedmodel_autofill_sanity/bad_output_type/1/model.savedmodel/saved_model.pb
Binary file not shown.
25 changes: 25 additions & 0 deletions
25
src/servables/tensorflow/testdata/savedmodel_autofill_sanity/bad_output_type/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,25 @@ | ||
max_batch_size: 1 | ||
input [ | ||
{ | ||
name: "INPUT0" | ||
data_type: TYPE_INT32 | ||
dims: [ 16 ] | ||
}, | ||
{ | ||
name: "INPUT1" | ||
data_type: TYPE_INT32 | ||
dims: [ 16 ] | ||
} | ||
] | ||
output [ | ||
{ | ||
name: "OUTPUT0" | ||
data_type: TYPE_INT16 | ||
dims: [ 16 ] | ||
}, | ||
{ | ||
name: "OUTPUT1" | ||
data_type: TYPE_INT8 | ||
dims: [ 16 ] | ||
} | ||
] |
1 change: 1 addition & 0 deletions
1
src/servables/tensorflow/testdata/savedmodel_autofill_sanity/bad_output_type/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 @@ | ||
Invalid argument: unable to load model 'bad_output_type', output 'OUTPUT0' data-type DT_INT8 doesn't match configuration data-type TYPE_INT16 |
Empty file.
Binary file added
BIN
+1.37 KB
...ow/testdata/savedmodel_autofill_sanity/no_name_platform/1/model.savedmodel/saved_model.pb
Binary file not shown.
Oops, something went wrong.