Browse Source

!9200 modify question of the viewed code

From: @shenwei41
Reviewed-by: @heleiwang,@nsyca
Signed-off-by: @jonyguo
tags/v1.1.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
2a21a4ade7
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      mindspore/ccsrc/minddata/dataset/include/tensor.h

+ 0
- 1
mindspore/ccsrc/minddata/dataset/include/tensor.h View File

@@ -751,7 +751,6 @@ inline Status Tensor::CreateFromVector<std::string>(const std::vector<std::strin
num_bytes -= str.length() + 1;
}
// store one more offset value so we can get the length of the last string
// length[last_element] = offset_arr[last_element + 1] - offset_arr[last_element]
offset_arr[i] = offset;

(*out)->data_end_ = (*out)->data_ + offset_arr[i];


Loading…
Cancel
Save