Skip to content

Update gradnorm.py #100

Update gradnorm.py

Update gradnorm.py #100

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.9' # Specify your Python version
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
if [ -f requirements_workflow.txt ]; then pip install -r requirements_workflow.txt; fi
- name: Run tests
run: python -m pytest