Browse Source

Suppress CS1717 (Assignment made to same variable)

tags/v0.20
Sam Harwell Haiping 5 years ago
parent
commit
dd7060cfc8
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/TensorFlowNET.Core/Keras/Optimizers/SGD.cs

+ 2
- 0
src/TensorFlowNET.Core/Keras/Optimizers/SGD.cs View File

@@ -24,7 +24,9 @@ namespace Tensorflow.Keras.Optimizers

_set_hyper("momentum", momentum);

#pragma warning disable CS1717 // Assignment made to same variable
nesterov = nesterov;
#pragma warning restore CS1717 // Assignment made to same variable
}

protected override void _prepare_local(DeviceDType device_dtype,


Loading…
Cancel
Save