diff --git a/src/TensorFlowNET.Core/Keras/Engine/Model.cs b/src/TensorFlowNET.Core/Keras/Engine/Model.cs index d4cde39e..4b1060f1 100644 --- a/src/TensorFlowNET.Core/Keras/Engine/Model.cs +++ b/src/TensorFlowNET.Core/Keras/Engine/Model.cs @@ -5,7 +5,9 @@ namespace Tensorflow.Keras.Engine public class Model : Network { bool _cloning; +#pragma warning disable CS0108 // Member hides inherited member; missing new keyword bool _is_compiled; +#pragma warning restore CS0108 // Member hides inherited member; missing new keyword string loss; IOptimizer optimizer; diff --git a/src/TensorFlowNET.Core/Keras/Layers/Pooling2D.cs b/src/TensorFlowNET.Core/Keras/Layers/Pooling2D.cs index ccb1cd6f..646751ae 100644 --- a/src/TensorFlowNET.Core/Keras/Layers/Pooling2D.cs +++ b/src/TensorFlowNET.Core/Keras/Layers/Pooling2D.cs @@ -26,7 +26,9 @@ namespace Tensorflow.Keras.Layers private int[] strides; private string padding; private string data_format; +#pragma warning disable CS0108 // Member hides inherited member; missing new keyword private InputSpec input_spec; +#pragma warning restore CS0108 // Member hides inherited member; missing new keyword public Pooling2D(IPoolFunction pool_function, int[] pool_size, diff --git a/src/TensorFlowNET.Core/Operations/ControlFlows/CondContext.cs b/src/TensorFlowNET.Core/Operations/ControlFlows/CondContext.cs index ce2295c8..444cac83 100644 --- a/src/TensorFlowNET.Core/Operations/ControlFlows/CondContext.cs +++ b/src/TensorFlowNET.Core/Operations/ControlFlows/CondContext.cs @@ -27,7 +27,9 @@ namespace Tensorflow.Operations /// public class CondContext : ControlFlowContext, IProtoBuf { +#pragma warning disable CS0108 // Member hides inherited member; missing new keyword private Dictionary _external_values = new Dictionary(); +#pragma warning restore CS0108 // Member hides inherited member; missing new keyword /// /// diff --git a/src/TensorFlowNET.Core/Operations/ControlFlows/WhileContext.cs b/src/TensorFlowNET.Core/Operations/ControlFlows/WhileContext.cs index c2e204ca..a7a98743 100644 --- a/src/TensorFlowNET.Core/Operations/ControlFlows/WhileContext.cs +++ b/src/TensorFlowNET.Core/Operations/ControlFlows/WhileContext.cs @@ -666,7 +666,9 @@ namespace Tensorflow.Operations return ret; } +#pragma warning disable CS0108 // Member hides inherited member; missing new keyword public object to_proto() +#pragma warning restore CS0108 // Member hides inherited member; missing new keyword { throw new NotImplementedException(); } diff --git a/src/TensorFlowNET.Core/Operations/Queues/PriorityQueue.cs b/src/TensorFlowNET.Core/Operations/Queues/PriorityQueue.cs index 7420c017..c2a2b70d 100644 --- a/src/TensorFlowNET.Core/Operations/Queues/PriorityQueue.cs +++ b/src/TensorFlowNET.Core/Operations/Queues/PriorityQueue.cs @@ -65,7 +65,9 @@ namespace Tensorflow.Queues }); } +#pragma warning disable CS0108 // Member hides inherited member; missing new keyword public Tensor[] dequeue(string name = null) +#pragma warning restore CS0108 // Member hides inherited member; missing new keyword { Tensor[] ret; if (name == null) diff --git a/src/TensorFlowNET.Core/Variables/ResourceVariable.cs b/src/TensorFlowNET.Core/Variables/ResourceVariable.cs index 46d994b3..c2c586b9 100644 --- a/src/TensorFlowNET.Core/Variables/ResourceVariable.cs +++ b/src/TensorFlowNET.Core/Variables/ResourceVariable.cs @@ -30,7 +30,9 @@ namespace Tensorflow { Tensor _cached_value; public string Device => handle.Device; +#pragma warning disable CS0108 // Member hides inherited member; missing new keyword public Graph Graph => handle.graph; +#pragma warning restore CS0108 // Member hides inherited member; missing new keyword public Operation op => handle.op; public Tensor is_initialized_op { get; set; } diff --git a/src/TensorFlowNET.Keras/Layers/Core/Dense.cs b/src/TensorFlowNET.Keras/Layers/Core/Dense.cs index 47ec17cf..00885f1f 100644 --- a/src/TensorFlowNET.Keras/Layers/Core/Dense.cs +++ b/src/TensorFlowNET.Keras/Layers/Core/Dense.cs @@ -28,7 +28,9 @@ namespace Keras.Layers RefVariable W; int units; TensorShape WShape; +#pragma warning disable CS0108 // Member hides inherited member; missing new keyword string name; +#pragma warning restore CS0108 // Member hides inherited member; missing new keyword IActivation activation; public Dense(int units, string name = null, IActivation activation = null) @@ -60,7 +62,9 @@ namespace Keras.Layers { return WShape; } +#pragma warning disable CS0108 // Member hides inherited member; missing new keyword public TensorShape output_shape(TensorShape input_shape) +#pragma warning restore CS0108 // Member hides inherited member; missing new keyword { var output_shape = input_shape.dims; output_shape[output_shape.Length - 1] = units;