mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-18 01:54:05 +00:00
Remove cbegin and cend calls which do not exist in std::span or gsl::span (#10426)
This commit is contained in:
parent
5f0ba31890
commit
b02f4ece5e
2 changed files with 2 additions and 2 deletions
|
|
@ -43,7 +43,7 @@ using InlinedShapeVector = absl::InlinedVector<T, kTensorShapeSmallBufferElement
|
|||
inline TensorShapeVector ToShapeVector(const gsl::span<const int64_t>& span) {
|
||||
TensorShapeVector out;
|
||||
out.reserve(span.size());
|
||||
out.assign(span.cbegin(), span.cend());
|
||||
out.assign(span.begin(), span.end());
|
||||
return out;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -186,7 +186,7 @@ MUST_USE_RESULT Status OpNodeProtoHelper<Impl_t>::GetAttrs(const std::string& na
|
|||
Status status = this->GetAttrsAsSpan<int64_t>(name, span);
|
||||
if (status.IsOK()) {
|
||||
out.reserve(span.size());
|
||||
out.assign(span.cbegin(), span.cend());
|
||||
out.assign(span.begin(), span.end());
|
||||
}
|
||||
return status;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue