Skip to content

Commit

Permalink
hints
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderDokuchaev committed Sep 26, 2023
1 parent 29f80bd commit 6c21d17
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nncf/experimental/tensor/tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from __future__ import annotations

import operator
from typing import Any, List, Optional, Tuple, TypeVar, Union
from typing import Any, Optional, Tuple, TypeVar, Union

from nncf.experimental.tensor.enums import TensorDataType
from nncf.experimental.tensor.enums import TensorDeviceType
Expand Down Expand Up @@ -128,10 +128,10 @@ def squeeze(self, axis: Optional[Union[int, Tuple[int, ...]]] = None) -> Tensor:
def flatten(self) -> Tensor:
return _call_function("flatten", self)

def max(self, axis: Optional[TTensor] = None) -> Tensor:
def max(self, axis: Optional[Union[int, Tuple[int, ...]]] = None) -> Tensor:
return _call_function("max", self, axis)

def min(self, axis: Optional[TTensor] = None) -> Tensor:
def min(self, axis: Optional[Union[int, Tuple[int, ...]]] = None) -> Tensor:
return _call_function("min", self, axis)

def abs(self) -> Tensor:
Expand All @@ -140,7 +140,7 @@ def abs(self) -> Tensor:
def isempty(self) -> bool:
return _call_function("isempty", self)

def astype(self, dtype: TensorDataType):
def astype(self, dtype: TensorDataType) -> Tensor:
return _call_function("astype", self, dtype)

def reshape(self, shape: Tuple[int, ...]) -> Tensor:
Expand Down

0 comments on commit 6c21d17

Please sign in to comment.