We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6749d0 commit 76023dbCopy full SHA for 76023db
src/backends/torch/torchinputconns.cc
@@ -1049,8 +1049,9 @@ namespace dd
1049
std::vector<at::Tensor> label_sequence;
1050
1051
tstart = seq.size() - _timesteps;
1052
- _ids.push_back(_fnames[vecindex] + " #" + std::to_string(tstart)
1053
- + "_" + std::to_string(tstart + _timesteps - 1));
+ if (_fnames.size() > static_cast<unsigned int>(vecindex))
+ _ids.push_back(_fnames[vecindex] + " #" + std::to_string(tstart)
1054
+ + "_" + std::to_string(tstart + _timesteps - 1));
1055
for (int ti = tstart; ti < tstart + _timesteps; ++ti)
1056
{
1057
std::vector<double> datavec;
0 commit comments