Skip to content

Commit afcf4ee

Browse files
committed
Support MLUtils.flatten
1 parent 219482a commit afcf4ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const ConvLayer = Union{Conv} # TODO: DepthwiseConv, ConvTranspose, CrossCor
66
const DropoutLayer = Union{Dropout,typeof(Flux.dropout),AlphaDropout}
77

88
"""Union type for reshaping layers such as `flatten`."""
9-
const ReshapingLayer = Union{typeof(Flux.flatten)}
9+
const ReshapingLayer = Union{typeof(Flux.flatten), typeof(Flux.MLUtils.flatten)}
1010

1111
"""Union type for max pooling layers."""
1212
const MaxPoolLayer = Union{MaxPool,AdaptiveMaxPool,GlobalMaxPool}

0 commit comments

Comments
 (0)