Skip to content
Closed
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
5 changes: 5 additions & 0 deletions examples/pytorch/test_pytorch_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import logging
import os
import sys
import unittest
from unittest.mock import patch

from transformers import ViTMAEForPreTraining, Wav2Vec2ForPreTraining
Expand Down Expand Up @@ -613,6 +614,10 @@ def test_run_semantic_segmentation(self):
self.assertGreaterEqual(result["eval_overall_accuracy"], 0.1)

@patch.dict(os.environ, {"WANDB_DISABLED": "true"})
@unittest.skipIf(
backend_device_count(torch_device) > 1,
"TODO @qubvel, index out of bounds for bounding boxes when running on multi-accelerator",
)
def test_run_object_detection(self):
tmp_dir = self.get_auto_remove_tmp_dir()
testargs = f"""
Expand Down