Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Commit db72e4d

Browse files
authored
Fix '@noDerivative' warnings. (#208)
1 parent 9150822 commit db72e4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Models/ImageClassification/WideResNet.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ public struct BatchNormConv2DBlock: Layer {
2626
public var norm2: BatchNorm<Float>
2727
public var conv2: Conv2D<Float>
2828
public var shortcut: Conv2D<Float>
29-
let isExpansion: Bool
30-
let dropout: Dropout<Float> = Dropout(probability: 0.3)
29+
@noDerivative let isExpansion: Bool
30+
@noDerivative let dropout: Dropout<Float> = Dropout(probability: 0.3)
3131

3232
public init(
3333
featureCounts: (Int, Int),

0 commit comments

Comments
 (0)