Skip to content

Commit

Permalink
Merge pull request #356 from vespa-engine/tgm/increase-container-stop…
Browse files Browse the repository at this point in the history
…-timeout

Fix Vespa Cloud integration tests failure due to Vespa 8 tensor default formatting
  • Loading branch information
thigm85 authored Jun 23, 2022
2 parents ec19e3c + 9c03aa7 commit c748bcb
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions vespa/test_integration_vespa_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,13 +209,8 @@ def setUp(self) -> None:
expected_fields.update(
{
"pretrained_bert_tiny_doc_token_ids": {
"cells": [
{
"address": {"d0": str(x)},
"value": float(tensor_field_values[x]),
}
for x in range(len(tensor_field_values))
]
"type": f"tensor<float>(d0[{len(tensor_field_values)}])",
"values": tensor_field_values,
}
}
)
Expand Down Expand Up @@ -331,10 +326,8 @@ def setUp(self) -> None:
"dataset": d["dataset"],
"context_id": d["context_id"],
"sentence_embedding": {
"cells": [
{"address": {"x": str(idx)}, "value": value}
for idx, value in enumerate(d["sentence_embedding"]["values"])
]
"type": f"tensor<float>(x[{len(d['sentence_embedding']['values'])}])",
"values": d["sentence_embedding"]["values"],
},
}
if len(d["questions"]) > 0:
Expand Down

0 comments on commit c748bcb

Please sign in to comment.