flatten

function defined in module MLUtils


			flatten(x::AbstractArray)

Reshape arbitrarly-shaped input into a matrix-shaped output, preserving the size of the last dimension.

See also unsqueeze.

Examples


			julia> rand(3,4,5) |> flatten |> size
(12, 5)
Methods

There is 1 method for MLUtils.flatten: