Skip to content

Commit b0de169

Browse files
committed
Internal fix
PiperOrigin-RevId: 493393200
1 parent c0a11ad commit b0de169

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

official/vision/modeling/layers/edgetpu.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
"""EdgeTPU oriented layers and tools."""
16-
from typing import Optional, Sequence, Union, Iterable
16+
from typing import List, Optional, Sequence, Union, Iterable
1717

1818
import numpy as np
1919
import tensorflow as tf
@@ -102,7 +102,7 @@ def _same(x):
102102

103103
def shard_tensors(
104104
axis: int, block_size: int, tensors: Sequence[tf.Tensor]
105-
) -> Union[list[Sequence[tf.Tensor]], Iterable[Sequence[tf.Tensor]]]:
105+
) -> Union[List[Sequence[tf.Tensor]], 'Iterable[Sequence[tf.Tensor]]']:
106106
"""Consistently splits multiple tensors sharding-style.
107107
108108
Args:

0 commit comments

Comments
 (0)