| @@ -4,7 +4,9 @@ namespace Tensorflow | |||||
| { | { | ||||
| public class Function | public class Function | ||||
| { | { | ||||
| #pragma warning disable CS0169 // The field 'Function._handle' is never used | |||||
| private IntPtr _handle; | private IntPtr _handle; | ||||
| #pragma warning restore CS0169 // The field 'Function._handle' is never used | |||||
| public Function() | public Function() | ||||
| { | { | ||||
| @@ -4,7 +4,9 @@ namespace Tensorflow.Keras.Engine | |||||
| { | { | ||||
| public class Model : Network | public class Model : Network | ||||
| { | { | ||||
| #pragma warning disable CS0169 // The field 'Model._cloning' is never used | |||||
| bool _cloning; | bool _cloning; | ||||
| #pragma warning restore CS0169 // The field 'Model._cloning' is never used | |||||
| #pragma warning disable CS0108 // Member hides inherited member; missing new keyword | #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 | #pragma warning restore CS0108 // Member hides inherited member; missing new keyword | ||||
| @@ -21,7 +21,9 @@ namespace Tensorflow.Keras.Engine | |||||
| public class Sequential : Model, ITensorFlowObject | public class Sequential : Model, ITensorFlowObject | ||||
| { | { | ||||
| bool _is_graph_network; | bool _is_graph_network; | ||||
| #pragma warning disable CS0169 // The field 'Sequential.outputs' is never used | |||||
| Tensor[] outputs; | Tensor[] outputs; | ||||
| #pragma warning restore CS0169 // The field 'Sequential.outputs' is never used | |||||
| public Sequential(string name = null) | public Sequential(string name = null) | ||||
| : base(name: name) | : base(name: name) | ||||
| @@ -66,7 +66,9 @@ namespace Tensorflow.Keras.Layers | |||||
| private List<Node> _outbound_nodes; | private List<Node> _outbound_nodes; | ||||
| public List<Node> outbound_nodes => _outbound_nodes; | public List<Node> outbound_nodes => _outbound_nodes; | ||||
| #pragma warning disable CS0169 // The field 'Layer._initial_weights' is never used | |||||
| float _initial_weights; | float _initial_weights; | ||||
| #pragma warning restore CS0169 // The field 'Layer._initial_weights' is never used | |||||
| public Layer(bool trainable = true, | public Layer(bool trainable = true, | ||||
| string name = null, | string name = null, | ||||
| @@ -10,7 +10,9 @@ namespace Tensorflow.Keras.Optimizers | |||||
| { | { | ||||
| protected override string _name => "SGD"; | protected override string _name => "SGD"; | ||||
| #pragma warning disable CS0169 // The field 'SGD.nesterov' is never used | |||||
| bool nesterov; | bool nesterov; | ||||
| #pragma warning restore CS0169 // The field 'SGD.nesterov' is never used | |||||
| public SGD(float learning_rate, | public SGD(float learning_rate, | ||||
| float momentum = 0.0f, | float momentum = 0.0f, | ||||
| @@ -61,8 +61,12 @@ namespace Tensorflow | |||||
| { | { | ||||
| private StringOrFunction _device_name_or_function; | private StringOrFunction _device_name_or_function; | ||||
| private string display_name; | private string display_name; | ||||
| #pragma warning disable CS0169 // The field '_UserDeviceSpec.function' is never used | |||||
| private FunctionDef function; | private FunctionDef function; | ||||
| #pragma warning restore CS0169 // The field '_UserDeviceSpec.function' is never used | |||||
| #pragma warning disable CS0169 // The field '_UserDeviceSpec.raw_string' is never used | |||||
| private string raw_string; | private string raw_string; | ||||
| #pragma warning restore CS0169 // The field '_UserDeviceSpec.raw_string' is never used | |||||
| public _UserDeviceSpec(StringOrFunction device_name_or_function) | public _UserDeviceSpec(StringOrFunction device_name_or_function) | ||||
| { | { | ||||