| @@ -5,7 +5,9 @@ namespace Tensorflow.Keras.Engine | |||||
| public class Model : Network | public class Model : Network | ||||
| { | { | ||||
| bool _cloning; | bool _cloning; | ||||
| #pragma warning disable CS0108 // Member hides inherited member; missing new keyword | |||||
| bool _is_compiled; | bool _is_compiled; | ||||
| #pragma warning restore CS0108 // Member hides inherited member; missing new keyword | |||||
| string loss; | string loss; | ||||
| IOptimizer optimizer; | IOptimizer optimizer; | ||||
| @@ -26,7 +26,9 @@ namespace Tensorflow.Keras.Layers | |||||
| private int[] strides; | private int[] strides; | ||||
| private string padding; | private string padding; | ||||
| private string data_format; | private string data_format; | ||||
| #pragma warning disable CS0108 // Member hides inherited member; missing new keyword | |||||
| private InputSpec input_spec; | private InputSpec input_spec; | ||||
| #pragma warning restore CS0108 // Member hides inherited member; missing new keyword | |||||
| public Pooling2D(IPoolFunction pool_function, | public Pooling2D(IPoolFunction pool_function, | ||||
| int[] pool_size, | int[] pool_size, | ||||
| @@ -27,7 +27,9 @@ namespace Tensorflow.Operations | |||||
| /// </summary> | /// </summary> | ||||
| public class CondContext : ControlFlowContext, IProtoBuf<CondContextDef, CondContext> | public class CondContext : ControlFlowContext, IProtoBuf<CondContextDef, CondContext> | ||||
| { | { | ||||
| #pragma warning disable CS0108 // Member hides inherited member; missing new keyword | |||||
| private Dictionary<string, Tensor> _external_values = new Dictionary<string, Tensor>(); | private Dictionary<string, Tensor> _external_values = new Dictionary<string, Tensor>(); | ||||
| #pragma warning restore CS0108 // Member hides inherited member; missing new keyword | |||||
| /// <summary> | /// <summary> | ||||
| /// | /// | ||||
| @@ -666,7 +666,9 @@ namespace Tensorflow.Operations | |||||
| return ret; | return ret; | ||||
| } | } | ||||
| #pragma warning disable CS0108 // Member hides inherited member; missing new keyword | |||||
| public object to_proto() | public object to_proto() | ||||
| #pragma warning restore CS0108 // Member hides inherited member; missing new keyword | |||||
| { | { | ||||
| throw new NotImplementedException(); | throw new NotImplementedException(); | ||||
| } | } | ||||
| @@ -65,7 +65,9 @@ namespace Tensorflow.Queues | |||||
| }); | }); | ||||
| } | } | ||||
| #pragma warning disable CS0108 // Member hides inherited member; missing new keyword | |||||
| public Tensor[] dequeue(string name = null) | public Tensor[] dequeue(string name = null) | ||||
| #pragma warning restore CS0108 // Member hides inherited member; missing new keyword | |||||
| { | { | ||||
| Tensor[] ret; | Tensor[] ret; | ||||
| if (name == null) | if (name == null) | ||||
| @@ -30,7 +30,9 @@ namespace Tensorflow | |||||
| { | { | ||||
| Tensor _cached_value; | Tensor _cached_value; | ||||
| public string Device => handle.Device; | public string Device => handle.Device; | ||||
| #pragma warning disable CS0108 // Member hides inherited member; missing new keyword | |||||
| public Graph Graph => handle.graph; | public Graph Graph => handle.graph; | ||||
| #pragma warning restore CS0108 // Member hides inherited member; missing new keyword | |||||
| public Operation op => handle.op; | public Operation op => handle.op; | ||||
| public Tensor is_initialized_op { get; set; } | public Tensor is_initialized_op { get; set; } | ||||
| @@ -28,7 +28,9 @@ namespace Keras.Layers | |||||
| RefVariable W; | RefVariable W; | ||||
| int units; | int units; | ||||
| TensorShape WShape; | TensorShape WShape; | ||||
| #pragma warning disable CS0108 // Member hides inherited member; missing new keyword | |||||
| string name; | string name; | ||||
| #pragma warning restore CS0108 // Member hides inherited member; missing new keyword | |||||
| IActivation activation; | IActivation activation; | ||||
| public Dense(int units, string name = null, IActivation activation = null) | public Dense(int units, string name = null, IActivation activation = null) | ||||
| @@ -60,7 +62,9 @@ namespace Keras.Layers | |||||
| { | { | ||||
| return WShape; | return WShape; | ||||
| } | } | ||||
| #pragma warning disable CS0108 // Member hides inherited member; missing new keyword | |||||
| public TensorShape output_shape(TensorShape input_shape) | public TensorShape output_shape(TensorShape input_shape) | ||||
| #pragma warning restore CS0108 // Member hides inherited member; missing new keyword | |||||
| { | { | ||||
| var output_shape = input_shape.dims; | var output_shape = input_shape.dims; | ||||
| output_shape[output_shape.Length - 1] = units; | output_shape[output_shape.Length - 1] = units; | ||||