You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: py/torch_tensorrt/_Input.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
fromenumimportEnum
2
-
fromtypingimportList, Dict, Any, Tuple, Optional
2
+
fromtypingimportList, Dict, Any, Tuple, Optional, Union
3
3
4
4
importtorch
5
5
@@ -28,7 +28,7 @@ class _ShapeMode(Enum):
28
28
DYNAMIC=1
29
29
30
30
shape_mode=None#: (torch_tensorrt.Input._ShapeMode): Is input statically or dynamically shaped
31
-
shape=None#: (Tuple or Dict): Either a single Tuple or a dict of tuples defining the input shape. Static shaped inputs will have a single tuple. Dynamic inputs will have a dict of the form ``{ "min_shape": Tuple, "opt_shape": Tuple, "max_shape": Tuple }``
31
+
shape: Union[Tuple, Dict]=None#: (Tuple or Dict): Either a single Tuple or a dict of tuples defining the input shape. Static shaped inputs will have a single tuple. Dynamic inputs will have a dict of the form ``{ "min_shape": Tuple, "opt_shape": Tuple, "max_shape": Tuple }``
32
32
dtype= (
33
33
_enums.dtype.unknown
34
34
) #: The expected data type of the input tensor (default: torch_tensorrt.dtype.float32)
0 commit comments