[tensorflow] Fix literal value for pad function (#13877)

This commit is contained in:
Julen Costa Watanabe
2025-04-24 13:56:57 +02:00
committed by GitHub
parent 318c8687c8
commit 23c2cba7ff
+1 -1
View File
@@ -417,7 +417,7 @@ def reshape(tensor: TensorCompatible, shape: ShapeLike | Tensor, name: str | Non
def pad(
tensor: TensorCompatible,
paddings: Tensor | IntArray | Iterable[Iterable[int]],
mode: Literal["CONSTANT", "constant", "REFLECT", "reflect", "SYMMETRIC", "symmectric"] = "CONSTANT",
mode: Literal["CONSTANT", "constant", "REFLECT", "reflect", "SYMMETRIC", "symmetric"] = "CONSTANT",
constant_values: ScalarTensorCompatible = 0,
name: str | None = None,
) -> Tensor: ...