Skip to content

Fix import error when torch>=2.0.1 and torch.distributed is disabled #3553

Fix import error when torch>=2.0.1 and torch.distributed is disabled

Fix import error when torch>=2.0.1 and torch.distributed is disabled #3553

Workflow file for this run

name: Quality Check
on: [pull_request]
jobs:
quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v3
with:
python-version: 3.8
- name: Install Python dependencies
run: pip install -e .[quality]
- name: Run Quality check
run: make quality
- name: Check if failure
if: ${{ failure() }}
run: |
echo "Quality check failed. Please ensure the right dependency versions are installed with 'pip install -e .[quality]' and rerun 'make style; make quality;'" >> $GITHUB_STEP_SUMMARY