Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/models/nomic_bert/test_modeling_nomic_bert.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def test_inference_no_head_absolute_embedding_v1_5(self):
# fmt: off
expected_slice = Expectations(
{
("cuda", None): torch.tensor(
(None, None): torch.tensor(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Guess the same value work for XPU too (?)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

[
[
[1.7039e00, -4.5610e00, 1.5236e00],
Expand Down Expand Up @@ -339,7 +339,7 @@ def test_inference_no_head_absolute_embedding_v1(self):
# fmt: off
expected_slice = Expectations(
{
("cuda", None): torch.tensor(
(None, None): torch.tensor(
[
[
[ 1.2961, -1.1757, 1.2094],
Expand All @@ -352,7 +352,7 @@ def test_inference_no_head_absolute_embedding_v1(self):
[-0.4336, -0.8528, -0.2509],
]
]
)
),
}
).get_expectation()
# fmt: on
Expand Down
Loading