Skip to content

Commit bb7b5f0

Browse files
committed
Feedback: Ruth
1 parent 08f6a90 commit bb7b5f0

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

tests/model_serving/model_server/inference_graph/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def dog_breed_inference_graph(
4141
namespace=model_namespace.name,
4242
nodes=nodes,
4343
) as inference_graph:
44-
inference_graph.wait_for_condition(inference_graph.Condition.READY, "True")
44+
inference_graph.wait_for_condition(condition=inference_graph.Condition.READY, status="True")
4545
time.sleep(5) # This wait helps OpenShift to fully enable the Route, if the InferenceGraph is exposed
4646
yield inference_graph
4747

tests/model_serving/model_server/inference_graph/test_inference_graph_deployment.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def test_inference_graph_deployment(self, dog_breed_inference_graph):
1717
inference_service=dog_breed_inference_graph,
1818
inference_config=ONNX_INFERENCE_CONFIG,
1919
inference_type=Inference.GRAPH,
20+
model_name="dog-breed-classifier",
2021
protocol=Protocols.HTTPS,
2122
use_default_query=True,
2223
)

utilities/inference_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ def get_deployment_type(self) -> str:
7777
if isinstance(self.inference_service, InferenceService):
7878
return self.inference_service.instance.status.deploymentMode
7979

80-
return KServeDeploymentType.SERVERLESS
80+
if isinstance(self.inference_service, InferenceGraph):
81+
return KServeDeploymentType.SERVERLESS
8182

8283
def get_inference_url(self) -> str:
8384
"""

utilities/manifests/onnx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
"graph": {
2121
"query_input": "@utilities/manifests/openvino/dog-input-tensor.json",
22-
"query_output": r'{"model_name":"dog-breed-classifier","model_version":"1","outputs":\[{"name":"495","shape":\[1,133\],"datatype":"FP32","data":\[.*\]}\]}',
22+
"query_output": r'{"model_name":"$model_name","model_version":"1","outputs":\[{"name":"495","shape":\[1,133\],"datatype":"FP32","data":\[.*\]}\]}',
2323
"use_regex": True
2424
}
2525
},

0 commit comments

Comments
 (0)