summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorArne Juul <arnej@yahooinc.com>2022-12-13 11:38:08 +0000
committerArne Juul <arnej@yahooinc.com>2022-12-13 11:38:08 +0000
commitd5653b2479015d65aac6dcd562779b59c1e21784 (patch)
tree4d55e333a6d4d3bdf37c8261f4bcb9f8190818c7 /application
parentc45a69c72a3804b20aed8b39e0d02ab5b42c432a (diff)
update test, short tensors are default now
Diffstat (limited to 'application')
-rw-r--r--application/src/test/java/com/yahoo/application/container/ContainerModelEvaluationTest.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/application/src/test/java/com/yahoo/application/container/ContainerModelEvaluationTest.java b/application/src/test/java/com/yahoo/application/container/ContainerModelEvaluationTest.java
index 656660f7580..f838d7a5481 100644
--- a/application/src/test/java/com/yahoo/application/container/ContainerModelEvaluationTest.java
+++ b/application/src/test/java/com/yahoo/application/container/ContainerModelEvaluationTest.java
@@ -55,19 +55,19 @@ public class ContainerModelEvaluationTest {
{
String expected = "{\"cells\":[{\"address\":{},\"value\":2.496898}]}";
- assertResponse("http://localhost/model-evaluation/v1/xgboost_xgboost_2_2/eval", expected, jdisc);
+ assertResponse("http://localhost/model-evaluation/v1/xgboost_xgboost_2_2/eval?format.tensors=long", expected, jdisc);
}
{
String expected = "{\"cells\":[{\"address\":{},\"value\":1.9130086820218188}]}";
- assertResponse("http://localhost/model-evaluation/v1/lightgbm_regression/eval", expected, jdisc);
+ assertResponse("http://localhost/model-evaluation/v1/lightgbm_regression/eval?format.tensors=long", expected, jdisc);
}
{
String expected = "{\"cells\":[{\"address\":{\"d0\":\"0\"},\"value\":0.3006095290184021},{\"address\":{\"d0\":\"1\"},\"value\":0.33222490549087524},{\"address\":{\"d0\":\"2\"},\"value\":0.3671652674674988}]}";
- assertResponse("http://localhost/model-evaluation/v1/onnx_softmax_func/output/eval?input=" + inputTensor(), expected, jdisc);
- assertResponse("http://localhost/model-evaluation/v1/onnx_softmax_func/default.output/eval?input=" + inputTensor(), expected, jdisc);
- assertResponse("http://localhost/model-evaluation/v1/onnx_softmax_func/default/output/eval?input=" + inputTensor(), expected, jdisc);
+ assertResponse("http://localhost/model-evaluation/v1/onnx_softmax_func/output/eval?format.tensors=long&input=" + inputTensor(), expected, jdisc);
+ assertResponse("http://localhost/model-evaluation/v1/onnx_softmax_func/default.output/eval?format.tensors=long&input=" + inputTensor(), expected, jdisc);
+ assertResponse("http://localhost/model-evaluation/v1/onnx_softmax_func/default/output/eval?format.tensors=long&input=" + inputTensor(), expected, jdisc);
}
}