Skip to content

Commit 23a9c5b

Browse files
SomTambedarsnack
andauthored
Update src/utils.jl
Co-authored-by: Kyle Daruwalla <daruwalla.k.public@icloud.com>
1 parent 7a2b610 commit 23a9c5b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/utils.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,9 @@ kaiming_normal(rng::AbstractRNG; init_kwargs...) = (dims...; kwargs...) -> kaimi
179179
180180
Return an `Array` of size `dims` which is a (semi) orthogonal matrix, as described in [1].
181181
182-
The input must have at least 2 dimensions.
183-
184-
For input dimensions > 2, the array is flattened with respect to the last dimension, and then an orthogonal matrix is computed before reshaping it to original dimensions.
182+
The input must have at least 2 dimensions.
183+
For `length(dims) > 2`, a `prod(dims[1:(end - 1)])` by `dims[end]` orthogonal matrix
184+
is computed before reshaping it to the original dimensions.
185185
186186
# Examples
187187
```jldoctest; setup = :(using LinearAlgebra)

0 commit comments

Comments
 (0)