FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Suppress CS0108 (Member hides inherited member; missing new keyword) · MSavameri/TensorFlow.NET@044fe6d · GitHub

Repository navigation

Commit 044fe6d

Browse files
authored andcommitted
Suppress CS0108 (Member hides inherited member; missing new keyword)
1 parent e40b2f7 commit 044fe6d

7 files changed

Lines changed: 16 additions & 0 deletions

File tree

‎src/TensorFlowNET.Core/Keras/Engine/Model.cs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ namespace Tensorflow.Keras.Engine
55
public class Model : Network
66
{
77
bool _cloning;
8+
#pragma warning disable CS0108 // Member hides inherited member; missing new keyword
89
bool _is_compiled;
10+
#pragma warning restore CS0108 // Member hides inherited member; missing new keyword
911
string loss;
1012
IOptimizer optimizer;
1113

‎src/TensorFlowNET.Core/Keras/Layers/Pooling2D.cs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ public class Pooling2D : Tensorflow.Layers.Layer
2626
private int[] strides;
2727
private string padding;
2828
private string data_format;
29+
#pragma warning disable CS0108 // Member hides inherited member; missing new keyword
2930
private InputSpec input_spec;
31+
#pragma warning restore CS0108 // Member hides inherited member; missing new keyword
3032

3133
public Pooling2D(IPoolFunction pool_function,
3234
int[] pool_size,

‎src/TensorFlowNET.Core/Operations/ControlFlows/CondContext.cs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ namespace Tensorflow.Operations
2727
/// </summary>
2828
public class CondContext : ControlFlowContext, IProtoBuf<CondContextDef, CondContext>
2929
{
30+
#pragma warning disable CS0108 // Member hides inherited member; missing new keyword
3031
private Dictionary<string, Tensor> _external_values = new Dictionary<string, Tensor>();
32+
#pragma warning restore CS0108 // Member hides inherited member; missing new keyword
3133

3234
/// <summary>
3335
///

‎src/TensorFlowNET.Core/Operations/ControlFlows/WhileContext.cs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,9 @@ public WhileContext from_proto(WhileContextDef proto, string import_scope)
666666
return ret;
667667
}
668668

669+
#pragma warning disable CS0108 // Member hides inherited member; missing new keyword
669670
public object to_proto()
671+
#pragma warning restore CS0108 // Member hides inherited member; missing new keyword
670672
{
671673
throw new NotImplementedException();
672674
}

‎src/TensorFlowNET.Core/Operations/Queues/PriorityQueue.cs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ public Operation enqueue_many<T>(long[] indexes, T[] vals, string name = null)
6565
});
6666
}
6767

68+
#pragma warning disable CS0108 // Member hides inherited member; missing new keyword
6869
public Tensor[] dequeue(string name = null)
70+
#pragma warning restore CS0108 // Member hides inherited member; missing new keyword
6971
{
7072
Tensor[] ret;
7173
if (name == null)

‎src/TensorFlowNET.Core/Variables/ResourceVariable.cs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ public partial class ResourceVariable : BaseResourceVariable
3030
{
3131
Tensor _cached_value;
3232
public string Device => handle.Device;
33+
#pragma warning disable CS0108 // Member hides inherited member; missing new keyword
3334
public Graph Graph => handle.graph;
35+
#pragma warning restore CS0108 // Member hides inherited member; missing new keyword
3436
public Operation op => handle.op;
3537
public Tensor is_initialized_op { get; set; }
3638

‎src/TensorFlowNET.Keras/Layers/Core/Dense.cs‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ public class Dense : Layer
2828
RefVariable W;
2929
int units;
3030
TensorShape WShape;
31+
#pragma warning disable CS0108 // Member hides inherited member; missing new keyword
3132
string name;
33+
#pragma warning restore CS0108 // Member hides inherited member; missing new keyword
3234
IActivation activation;
3335

3436
public Dense(int units, string name = null, IActivation activation = null)
@@ -60,7 +62,9 @@ public TensorShape __shape__()
6062
{
6163
return WShape;
6264
}
65+
#pragma warning disable CS0108 // Member hides inherited member; missing new keyword
6366
public TensorShape output_shape(TensorShape input_shape)
67+
#pragma warning restore CS0108 // Member hides inherited member; missing new keyword
6468
{
6569
var output_shape = input_shape.dims;
6670
output_shape[output_shape.Length - 1] = units;

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL