Skip to content

Commit 51cdbb0

Browse files
committed
tf: add tf.split
1 parent 11c7821 commit 51cdbb0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

stubs/tensorflow/tensorflow/__init__.pyi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,13 @@ def squeeze(
385385
) -> Tensor: ...
386386
@overload
387387
def squeeze(input: RaggedTensor, axis: int | tuple[int, ...] | list[int], name: str | None = None) -> RaggedTensor: ...
388+
def split(
389+
value: TensorCompatible,
390+
num_or_size_splits: int | TensorCompatible,
391+
axis: int | Tensor = 0,
392+
num: int | None = None,
393+
name: str | None = "split",
394+
) -> list[Tensor]: ...
388395
def tensor_scatter_nd_update(
389396
tensor: TensorCompatible, indices: TensorCompatible, updates: TensorCompatible, name: str | None = None
390397
) -> Tensor: ...

0 commit comments

Comments
 (0)