Skip to content

Commit

Permalink
Fix dependency incompatibility in github tests (#207)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #207

Differential Revision: D62472378
  • Loading branch information
diego-urgell authored and facebook-github-bot committed Sep 11, 2024
1 parent a88a579 commit 4a5fa11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/unit_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ jobs:
shell: bash -l {0}
run: |
set -eux
conda activate test
conda install pytorch torchaudio torchvision cpuonly -c pytorch-nightly
pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu
pip install -r requirements.txt
pip install -r dev-requirements.txt
pip install --no-build-isolation -e ".[dev]"
Expand Down
4 changes: 2 additions & 2 deletions torcheval/metrics/aggregation/cov.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
# pyre-strict

from collections.abc import Iterable
from typing import Tuple, TypeVar
from typing import Tuple, TypeVar, Union

import torch
from torcheval.metrics.metric import Metric
from typing_extensions import Self, TypeAlias

# TODO: use a NamedTuple?
_T = TypeVar("_T", bound=torch.Tensor | int)
_T = TypeVar("_T", bound=Union[torch.Tensor, int])
_Output: TypeAlias = Tuple[torch.Tensor, torch.Tensor] # mean, cov


Expand Down

0 comments on commit 4a5fa11

Please sign in to comment.