fix / skip (for now) some tests before switch to torch 2.2 (#28838)
* fix / skip some tests before we can switch to torch 2.2 * style --------- Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
@@ -155,9 +155,11 @@ class ModelOutputTester(unittest.TestCase):
|
||||
if is_torch_greater_or_equal_than_2_2:
|
||||
self.assertEqual(
|
||||
pytree.treespec_dumps(actual_tree_spec),
|
||||
'[1, {"type": "tests.utils.test_model_output.ModelOutputTest", "context": ["a", "c"], "children_spec": [{"type": null, "context": null, "children_spec": []}, {"type": null, "context": null, "children_spec": []}]}]',
|
||||
'[1, {"type": "tests.utils.test_model_output.ModelOutputTest", "context": "[\\"a\\", \\"c\\"]", "children_spec": [{"type": null, "context": null, "children_spec": []}, {"type": null, "context": null, "children_spec": []}]}]',
|
||||
)
|
||||
|
||||
# TODO: @ydshieh
|
||||
@unittest.skip("CPU OOM")
|
||||
@require_torch
|
||||
def test_export_serialization(self):
|
||||
if not is_torch_greater_or_equal_than_2_2:
|
||||
|
||||
Reference in New Issue
Block a user