From 8a427623e8f1b1393fa21d7a4d2fdc265c055be3 Mon Sep 17 00:00:00 2001 From: Jirka Borovec Date: Mon, 22 Mar 2021 18:01:55 +0100 Subject: [PATCH] flake8 --- pytorch_lightning/metrics/functional/explained_variance.py | 2 +- pytorch_lightning/metrics/functional/mean_relative_error.py | 1 - pytorch_lightning/metrics/functional/mean_squared_error.py | 1 - pytorch_lightning/metrics/functional/mean_squared_log_error.py | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/pytorch_lightning/metrics/functional/explained_variance.py b/pytorch_lightning/metrics/functional/explained_variance.py index 534032024d5c0..bcfe698bf4c5e 100644 --- a/pytorch_lightning/metrics/functional/explained_variance.py +++ b/pytorch_lightning/metrics/functional/explained_variance.py @@ -11,7 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -from typing import Sequence, Tuple, Union +from typing import Sequence, Union import torch from torchmetrics.functional import explained_variance as _explained_variance diff --git a/pytorch_lightning/metrics/functional/mean_relative_error.py b/pytorch_lightning/metrics/functional/mean_relative_error.py index 8c6e10a17320b..be21371bdc91a 100644 --- a/pytorch_lightning/metrics/functional/mean_relative_error.py +++ b/pytorch_lightning/metrics/functional/mean_relative_error.py @@ -11,7 +11,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -from typing import Tuple import torch from torchmetrics.functional.regression.mean_relative_error import mean_relative_error as _mean_relative_error diff --git a/pytorch_lightning/metrics/functional/mean_squared_error.py b/pytorch_lightning/metrics/functional/mean_squared_error.py index 6801a0aa6e9e8..9d1850dcd8689 100644 --- a/pytorch_lightning/metrics/functional/mean_squared_error.py +++ b/pytorch_lightning/metrics/functional/mean_squared_error.py @@ -11,7 +11,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -from typing import Tuple import torch from torchmetrics.functional import mean_squared_error as _mean_squared_error diff --git a/pytorch_lightning/metrics/functional/mean_squared_log_error.py b/pytorch_lightning/metrics/functional/mean_squared_log_error.py index ac8154918f22f..56654ea47daf2 100644 --- a/pytorch_lightning/metrics/functional/mean_squared_log_error.py +++ b/pytorch_lightning/metrics/functional/mean_squared_log_error.py @@ -11,7 +11,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -from typing import Tuple import torch from torchmetrics.functional import mean_squared_log_error as _mean_squared_log_error