Skip to content

Commit

Permalink
[sharktank] Mark test expected to fail
Browse files Browse the repository at this point in the history
Marks `testExportWithArgumentDeviceAffinities` as expected to fail if
running with torch>=2.4.0, see nod-ai#685.
  • Loading branch information
marbre committed Dec 12, 2024
1 parent 8802b90 commit a079a59
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sharktank/tests/export_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

import pytest

from sharktank.types import (
ReplicatedTensor,
SplitPrimitiveTensor,
Expand Down Expand Up @@ -70,6 +72,7 @@ def testGetFlatArgumentDeviceAffinities(self):
}
assert_dicts_equal(affinities, expected_affinities)

@pytest.mark.xfail(torch.__version__ >= (2,4), reason="https://github.com/nod-ai/shark-ai/issues/685")
def testExportWithArgumentDeviceAffinities(self):
args = (ReplicatedTensor(ts=[torch.tensor([1])]), torch.tensor([[2]]))

Expand Down

0 comments on commit a079a59

Please sign in to comment.