Skip to content

Commit dd7060c

Browse files
sharwellOceania2018
authored andcommitted
Suppress CS1717 (Assignment made to same variable)
1 parent 09f1af5 commit dd7060c

File tree

1 file changed

+2
-0
lines changed
  • src/TensorFlowNET.Core/Keras/Optimizers

1 file changed

+2
-0
lines changed

src/TensorFlowNET.Core/Keras/Optimizers/SGD.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ public SGD(float learning_rate,
2424

2525
_set_hyper("momentum", momentum);
2626

27+
#pragma warning disable CS1717 // Assignment made to same variable
2728
nesterov = nesterov;
29+
#pragma warning restore CS1717 // Assignment made to same variable
2830
}
2931

3032
protected override void _prepare_local(DeviceDType device_dtype,

0 commit comments

Comments
 (0)