Browse Source

Modernized the formatting of a slice string.

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

+ 1
- 1
src/TensorFlowNET.Keras/Sequence.cs View File

@@ -65,7 +65,7 @@ namespace Tensorflow.Keras
{
s = (truncating == "pre") ? s.Slice(s.Length - maxlen.Value, s.Length) : s.Slice(0, maxlen.Value);
}
var sliceString = (padding == "pre") ? (i.ToString() + "," + (maxlen-s.Length).ToString() + ":") : (i.ToString() + ",:" + s.Length);
var sliceString = (padding == "pre") ? $"{i},{maxlen-s.Length}:" : $"{i},:{s.Length}";
nd[sliceString] = np.array(s);
}



Loading…
Cancel
Save