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
* <b>`mode`</b>: One of "CONSTANT", "REFLECT", or "SYMMETRIC".
596
610
* <b>`name`</b>: A name for the operation (optional).
597
611
598
612
##### Returns:
599
613
600
-
A `Tensor`. Has the same type as `input`.
614
+
A `Tensor`. Has the same type as `tensor`.
615
+
616
+
##### Raises:
617
+
618
+
619
+
* <b>`ValueError`</b>: When mode is not one of "CONSTANT", "REFLECT", or "SYMMETRIC".
601
620
602
621
603
622
- - -
@@ -1277,6 +1296,7 @@ where `(i1,...,iK)` is the ith `True` entry of `mask` (row-major order).
1277
1296
1278
1297
1279
1298
* <b>`Examples`</b>:
1299
+
1280
1300
```python
1281
1301
# 2-D example
1282
1302
a = [[1, 2], [3, 4], [5, 6]]
@@ -1420,8 +1440,8 @@ dimension be equal to sizeof(`type`)/sizeof(`T`). The shape then goes from
1420
1440
##### Args:
1421
1441
1422
1442
1423
-
* <b>`input`</b>: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int64`, `int32`, `uint8`, `uint16`, `int16`, `int8`, `complex64`, `qint8`, `quint8`, `qint32`.
* <b>`input`</b>: A `Tensor`. Must be one of the following types: `float32`, `float64`, `int64`, `int32`, `uint8`, `uint16`, `int16`, `int8`, `complex64`, `complex128`, `qint8`, `quint8`, `qint32`.
0 commit comments