Browse Source

Removed pragma disabling a warning about unreachable code.

pull/756/head
Niklas Gustafsson 4 years ago
parent
commit
4bc1dc7f4f
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      src/TensorFlowNET.Keras/Sequence.cs

+ 0
- 2
src/TensorFlowNET.Keras/Sequence.cs View File

@@ -58,9 +58,7 @@ namespace Tensorflow.Keras
var type = getNPType(dtype); var type = getNPType(dtype);
var nd = new NDArray(type, new Shape(length.Count(), maxlen.Value),true); var nd = new NDArray(type, new Shape(length.Count(), maxlen.Value),true);


#pragma warning disable CS0162 // Unreachable code detected
for (int i = 0; i < nd.shape[0]; i++) for (int i = 0; i < nd.shape[0]; i++)
#pragma warning restore CS0162 // Unreachable code detected
{ {
var s = sequences.ElementAt(i); var s = sequences.ElementAt(i);
if (s.Length > maxlen.Value) if (s.Length > maxlen.Value)


Loading…
Cancel
Save