We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5c9161 commit 096a138Copy full SHA for 096a138
captum/optim/_utils/typing.py
@@ -38,4 +38,7 @@ def cleanup(self):
38
TransformValList = Union[Sequence[int], Sequence[float], Tensor]
39
TransformVal = Union[int, float, Tensor]
40
TransformSize = Union[List[int], Tuple[int], int]
41
-HookFuncArg = Callable[[Module, Union[Tuple[Tensor, ...], Tensor], Union[Tuple[Tensor, ...], Tensor]], Optional[Tensor]]
+HookFuncArg = Callable[
42
+ [Module, Union[Tuple[Tensor, ...], Tensor], Union[Tuple[Tensor, ...], Tensor]],
43
+ Optional[Tensor],
44
+]
0 commit comments