-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ml-service] Use pipeline conf from rpk
- Let the `sum_and_add` app use pipeline conf from rpks Signed-off-by: Yongjoo Ahn <[email protected]>
- Loading branch information
1 parent
db07147
commit 014774f
Showing
5 changed files
with
104 additions
and
4 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
37 changes: 37 additions & 0 deletions
37
...service-example/sum_and_add_model_rpk_v1/res/global/sum_and_add/sum_and_add.pipeline.conf
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,37 @@ | ||
{ | ||
"pipeline" : { | ||
"description" : " | ||
appsrc name=tsrc caps=other/tensors,num_tensors=1,format=(string)static,types=(string)float32,dimensions=(string)4:1,framerate=(fraction)0/1 ! | ||
queue leaky=2 max-size-buffers=2 ! | ||
tensor_filter framework=tensorflow-lite model=mlagent://model/sum_and_add_model custom=Delegate:XNNPACK,NumThreads:2 latency=1 ! | ||
tensor_sink name=tsink", | ||
"input_node" : [ | ||
{ | ||
"name" : "tsrc", | ||
"info" : [ | ||
{ | ||
"type" : "float32", | ||
"dimension" : "4:1" | ||
} | ||
] | ||
} | ||
], | ||
"output_node" : [ | ||
{ | ||
"name" : "tsink", | ||
"info" : [ | ||
{ | ||
"type" : "float32", | ||
"dimension" : "1" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"information" : | ||
{ | ||
"description" : "[sum_and_add_one.tflite] sum all values and add 1.0", | ||
"input_node_name" : "tsrc", | ||
"output_node_name" : "tsink" | ||
} | ||
} |
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
37 changes: 37 additions & 0 deletions
37
...service-example/sum_and_add_model_rpk_v2/res/global/sum_and_add/sum_and_add.pipeline.conf
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,37 @@ | ||
{ | ||
"pipeline" : { | ||
"description" : " | ||
appsrc name=tsrc caps=other/tensors,num_tensors=1,format=(string)static,types=(string)float32,dimensions=(string)4:1,framerate=(fraction)0/1 ! | ||
queue leaky=2 max-size-buffers=2 ! | ||
tensor_filter framework=tensorflow-lite model=mlagent://model/sum_and_add_model custom=Delegate:XNNPACK,NumThreads:2 latency=1 ! | ||
tensor_sink name=tsink", | ||
"input_node" : [ | ||
{ | ||
"name" : "tsrc", | ||
"info" : [ | ||
{ | ||
"type" : "float32", | ||
"dimension" : "4:1" | ||
} | ||
] | ||
} | ||
], | ||
"output_node" : [ | ||
{ | ||
"name" : "tsink", | ||
"info" : [ | ||
{ | ||
"type" : "float32", | ||
"dimension" : "1" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"information" : | ||
{ | ||
"description" : "[sum_and_add_two.tflite] sum all values and add 2.0", | ||
"input_node_name" : "tsrc", | ||
"output_node_name" : "tsink" | ||
} | ||
} |