Skip to content

Commit

Permalink
upgrade pyre version in fbcode/torcheval - batch 1
Browse files Browse the repository at this point in the history
Differential Revision: D55649628

fbshipit-source-id: 0f0632195183779b527d2905aa5b2597bc95599f
  • Loading branch information
generatedunixname89002005307016 authored and facebook-github-bot committed Apr 3, 2024
1 parent 13446fe commit 3ea2f6e
Show file tree
Hide file tree
Showing 23 changed files with 0 additions and 63 deletions.
1 change: 0 additions & 1 deletion torcheval/metrics/aggregation/auc.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

import torch

# pyre-fixme[21]: Could not find module `torcheval.metrics.functional.aggregation.auc`.
from torcheval.metrics.functional.aggregation.auc import (
_auc_compute,
_auc_update_input_check,
Expand Down
1 change: 0 additions & 1 deletion torcheval/metrics/aggregation/mean.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

import torch

# pyre-fixme[21]: Could not find module `torcheval.metrics.functional.aggregation.mean`.
from torcheval.metrics.functional.aggregation.mean import _mean_update
from torcheval.metrics.metric import Metric

Expand Down
1 change: 0 additions & 1 deletion torcheval/metrics/aggregation/sum.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

import torch

# pyre-fixme[21]: Could not find module `torcheval.metrics.functional.aggregation.sum`.
from torcheval.metrics.functional.aggregation.sum import _sum_update
from torcheval.metrics.metric import Metric

Expand Down
2 changes: 0 additions & 2 deletions torcheval/metrics/classification/binary_normalized_entropy.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

import torch

# pyre-fixme[21]: Could not find module
# `torcheval.metrics.functional.classification.binary_normalized_entropy`.
from torcheval.metrics.functional.classification.binary_normalized_entropy import (
_baseline_update,
_binary_normalized_entropy_update,
Expand Down
5 changes: 0 additions & 5 deletions torcheval/metrics/functional/aggregation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,12 @@

# pyre-strict

# pyre-fixme[21]: Could not find module `torcheval.metrics.functional.aggregation.auc`.
from torcheval.metrics.functional.aggregation.auc import auc

# pyre-fixme[21]: Could not find module `torcheval.metrics.functional.aggregation.mean`.
from torcheval.metrics.functional.aggregation.mean import mean

# pyre-fixme[21]: Could not find module `torcheval.metrics.functional.aggregation.sum`.
from torcheval.metrics.functional.aggregation.sum import sum

# pyre-fixme[21]: Could not find module
# `torcheval.metrics.functional.aggregation.throughput`.
from torcheval.metrics.functional.aggregation.throughput import throughput


Expand Down
2 changes: 0 additions & 2 deletions torcheval/metrics/functional/classification/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
multiclass_auroc,
)

# pyre-fixme[21]: Could not find module
# `torcheval.metrics.functional.classification.binary_normalized_entropy`.
from torcheval.metrics.functional.classification.binary_normalized_entropy import (
binary_normalized_entropy,
)
Expand Down
13 changes: 0 additions & 13 deletions torcheval/metrics/functional/ranking/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,19 @@

# pyre-strict

# pyre-fixme[21]: Could not find module
# `torcheval.metrics.functional.ranking.click_through_rate`.
from torcheval.metrics.functional.ranking.click_through_rate import click_through_rate
from torcheval.metrics.functional.ranking.frequency import frequency_at_k

# pyre-fixme[21]: Could not find module `torcheval.metrics.functional.ranking.hit_rate`.
from torcheval.metrics.functional.ranking.hit_rate import hit_rate

# pyre-fixme[21]: Could not find module
# `torcheval.metrics.functional.ranking.num_collisions`.
from torcheval.metrics.functional.ranking.num_collisions import num_collisions

# pyre-fixme[21]: Could not find module
# `torcheval.metrics.functional.ranking.reciprocal_rank`.
from torcheval.metrics.functional.ranking.reciprocal_rank import reciprocal_rank

# pyre-fixme[21]: Could not find module
# `torcheval.metrics.functional.ranking.retrieval_precision`.
from torcheval.metrics.functional.ranking.retrieval_precision import retrieval_precision

# pyre-fixme[21]: Could not find module
# `torcheval.metrics.functional.ranking.retrieval_recall`.
from torcheval.metrics.functional.ranking.retrieval_recall import retrieval_recall

# pyre-fixme[21]: Could not find module
# `torcheval.metrics.functional.ranking.weighted_calibration`.
from torcheval.metrics.functional.ranking.weighted_calibration import (
weighted_calibration,
)
Expand Down
4 changes: 0 additions & 4 deletions torcheval/metrics/functional/regression/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,10 @@

# pyre-ignore-all-errors[16]: Undefined attribute of metric states.

# pyre-fixme[21]: Could not find module
# `torcheval.metrics.functional.regression.mean_squared_error`.
from torcheval.metrics.functional.regression.mean_squared_error import (
mean_squared_error,
)

# pyre-fixme[21]: Could not find module
# `torcheval.metrics.functional.regression.r2_score`.
from torcheval.metrics.functional.regression.r2_score import r2_score

__all__ = ["mean_squared_error", "r2_score"]
Expand Down
7 changes: 0 additions & 7 deletions torcheval/metrics/functional/text/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,14 @@

from torcheval.metrics.functional.text.bleu import bleu_score

# pyre-fixme[21]: Could not find module `torcheval.metrics.functional.text.perplexity`.
from torcheval.metrics.functional.text.perplexity import perplexity

# pyre-fixme[21]: Could not find module
# `torcheval.metrics.functional.text.word_error_rate`.
from torcheval.metrics.functional.text.word_error_rate import word_error_rate

# pyre-fixme[21]: Could not find module
# `torcheval.metrics.functional.text.word_information_lost`.
from torcheval.metrics.functional.text.word_information_lost import (
word_information_lost,
)

# pyre-fixme[21]: Could not find module
# `torcheval.metrics.functional.text.word_information_preserved`.
from torcheval.metrics.functional.text.word_information_preserved import (
word_information_preserved,
)
Expand Down
2 changes: 0 additions & 2 deletions torcheval/metrics/ranking/click_through_rate.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

import torch

# pyre-fixme[21]: Could not find module
# `torcheval.metrics.functional.ranking.click_through_rate`.
from torcheval.metrics.functional.ranking.click_through_rate import (
_click_through_rate_compute,
_click_through_rate_update,
Expand Down
2 changes: 0 additions & 2 deletions torcheval/metrics/ranking/retrieval_precision.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

import torch

# pyre-fixme[21]: Could not find module
# `torcheval.metrics.functional.ranking.retrieval_precision`.
from torcheval.metrics.functional.ranking.retrieval_precision import (
_retrieval_precision_param_check,
_retrieval_precision_update_input_check,
Expand Down
2 changes: 0 additions & 2 deletions torcheval/metrics/ranking/retrieval_recall.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

import torch

# pyre-fixme[21]: Could not find module
# `torcheval.metrics.functional.ranking.retrieval_recall`.
from torcheval.metrics.functional.ranking.retrieval_recall import (
_retrieval_recall_param_check,
_retrieval_recall_update_input_check,
Expand Down
2 changes: 0 additions & 2 deletions torcheval/metrics/ranking/weighted_calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

import torch

# pyre-fixme[21]: Could not find module
# `torcheval.metrics.functional.ranking.weighted_calibration`.
from torcheval.metrics.functional.ranking.weighted_calibration import (
_weighted_calibration_update,
)
Expand Down
2 changes: 0 additions & 2 deletions torcheval/metrics/regression/mean_squared_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

import torch

# pyre-fixme[21]: Could not find module
# `torcheval.metrics.functional.regression.mean_squared_error`.
from torcheval.metrics.functional.regression.mean_squared_error import (
_mean_squared_error_compute,
_mean_squared_error_param_check,
Expand Down
2 changes: 0 additions & 2 deletions torcheval/metrics/regression/r2_score.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

import torch

# pyre-fixme[21]: Could not find module
# `torcheval.metrics.functional.regression.r2_score`.
from torcheval.metrics.functional.regression.r2_score import (
_r2_score_compute,
_r2_score_param_check,
Expand Down
1 change: 0 additions & 1 deletion torcheval/metrics/text/perplexity.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

import torch

# pyre-fixme[21]: Could not find module `torcheval.metrics.functional.text.perplexity`.
from torcheval.metrics.functional.text.perplexity import (
_perplexity_compute,
_perplexity_update,
Expand Down
2 changes: 0 additions & 2 deletions torcheval/metrics/text/word_error_rate.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

import torch

# pyre-fixme[21]: Could not find module
# `torcheval.metrics.functional.text.word_error_rate`.
from torcheval.metrics.functional.text.word_error_rate import (
_word_error_rate_compute,
_word_error_rate_update,
Expand Down
2 changes: 0 additions & 2 deletions torcheval/metrics/text/word_information_lost.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

import torch

# pyre-fixme[21]: Could not find module
# `torcheval.metrics.functional.text.word_information_lost`.
from torcheval.metrics.functional.text.word_information_lost import (
_wil_compute,
_wil_update,
Expand Down
2 changes: 0 additions & 2 deletions torcheval/metrics/text/word_information_preserved.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

import torch

# pyre-fixme[21]: Could not find module
# `torcheval.metrics.functional.text.word_information_preserved`.
from torcheval.metrics.functional.text.word_information_preserved import (
_word_information_preserved_compute,
_word_information_preserved_update,
Expand Down
2 changes: 0 additions & 2 deletions torcheval/metrics/window/click_through_rate.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

import torch

# pyre-fixme[21]: Could not find module
# `torcheval.metrics.functional.ranking.click_through_rate`.
from torcheval.metrics.functional.ranking.click_through_rate import (
_click_through_rate_compute,
_click_through_rate_update,
Expand Down
2 changes: 0 additions & 2 deletions torcheval/metrics/window/mean_squared_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

import torch

# pyre-fixme[21]: Could not find module
# `torcheval.metrics.functional.regression.mean_squared_error`.
from torcheval.metrics.functional.regression.mean_squared_error import (
_mean_squared_error_compute,
_mean_squared_error_param_check,
Expand Down
2 changes: 0 additions & 2 deletions torcheval/metrics/window/normalized_entropy.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

import torch

# pyre-fixme[21]: Could not find module
# `torcheval.metrics.functional.classification.binary_normalized_entropy`.
from torcheval.metrics.functional.classification.binary_normalized_entropy import (
_baseline_update,
_binary_normalized_entropy_update,
Expand Down
2 changes: 0 additions & 2 deletions torcheval/metrics/window/weighted_calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

import torch

# pyre-fixme[21]: Could not find module
# `torcheval.metrics.functional.ranking.weighted_calibration`.
from torcheval.metrics.functional.ranking.weighted_calibration import (
_weighted_calibration_update,
)
Expand Down

0 comments on commit 3ea2f6e

Please sign in to comment.