Skip to content

Commit 7ee89ee

Browse files
Lewuathedsmilkov
authored andcommitted
Fix typo in concat and split doc (tensorflow#1501)
DOC
1 parent c211b49 commit 7ee89ee

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/ops/concat_split.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function concat1d_(tensors: Array<Tensor1D|TensorLike>): Tensor1D {
6363
* | r2, g2, b2, r4, g4, b4 |
6464
*
6565
*
66-
* @param tensors A list of`tf.Tensor`s to concatenate.
66+
* @param tensors A list of `tf.Tensor`s to concatenate.
6767
* @param axis The axis to concatenate along.
6868
* @return The concatenated array.
6969
*/
@@ -73,7 +73,8 @@ function concat2d_(
7373
}
7474

7575
/**
76-
* Concatenates a list of`tf.Tensor3D`s along an axis. See `concat` for details.
76+
* Concatenates a list of `tf.Tensor3D`s along an axis.
77+
* See `concat` for details.
7778
*
7879
* For example, if:
7980
* A: shape(2, 1, 3) = | r1, g1, b1 |
@@ -108,9 +109,10 @@ function concat3d_(
108109
}
109110

110111
/**
111-
* Concatenates a list of`tf.Tensor4D`s along an axis. See `concat` for details.
112+
* Concatenates a list of `tf.Tensor4D`s along an axis.
113+
* See `concat` for details.
112114
*
113-
* @param tensors A list of`tf.Tensor`s to concatenate.
115+
* @param tensors A list of `tf.Tensor`s to concatenate.
114116
* @param axis The axis to concate along.
115117
* @return The concatenated array.
116118
*/
@@ -120,7 +122,7 @@ function concat4d_(
120122
}
121123

122124
/**
123-
* Concatenates a list of`tf.Tensor`s along a given axis.
125+
* Concatenates a list of `tf.Tensor`s along a given axis.
124126
*
125127
* The tensors ranks and types must match, and their sizes must match in all
126128
* dimensions except `axis`.
@@ -185,14 +187,14 @@ function concat_<T extends Tensor>(tensors: Array<T|TensorLike>, axis = 0): T {
185187
}
186188

187189
/**
188-
* Splits a`tf.Tensor` into sub tensors.
190+
* Splits a `tf.Tensor` into sub tensors.
189191
*
190192
* If `numOrSizeSplits` is a number, splits `x` along dimension `axis`
191193
* into `numOrSizeSplits` smaller tensors.
192194
* Requires that `numOrSizeSplits` evenly divides `x.shape[axis]`.
193195
*
194196
* If `numOrSizeSplits` is a number array, splits `x` into
195-
* `(numOrSizeSplits.length` pieces. The shape of the `i`-th piece has the
197+
* `numOrSizeSplits.length` pieces. The shape of the `i`-th piece has the
196198
* same size as `x` except along dimension `axis` where the size is
197199
* `numOrSizeSplits[i]`.
198200
*

0 commit comments

Comments
 (0)