Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
b3664f8
[CUDA] Support SwiGlu in MoE and qMoE (#25530)
tianleiwu Jul 28, 2025
a8e1186
[CUDA] BF16 MoE and qMoE (#25572)
tianleiwu Jul 31, 2025
a9f74a0
Add CUDA implementation of GatherBlockQuantized operator (#25575)
xiaomsft Aug 1, 2025
d83904b
Add support for QMoE in CPU (#25558)
apsonawane Aug 2, 2025
8654241
Update MoE and qMoE spec (#25619)
tianleiwu Aug 2, 2025
6ca2047
[CPU] Improve QMoE kernel (#25822)
apsonawane Aug 26, 2025
dd32daf
Fix MoE CPP tests (#25877)
apsonawane Aug 28, 2025
581b8e7
Add custom ops library_path to EP metadata (#25830)
psakhamoori Aug 29, 2025
a9308a1
[Fix] illegal memory access in GetInputIndices with optional inputs (…
mingyueliuh Aug 29, 2025
6c7f150
[TRT RTX EP] Add sync method (#25898)
gedoensmax Sep 2, 2025
535fcc6
[TRT RTX EP] Memory map the engine buffer (#25909)
gedoensmax Sep 3, 2025
1f4e581
[TRT RTX EP] Add support for RTX runtime caches (#25917)
gedoensmax Sep 3, 2025
9732a3e
Compile API: disable optimizations by default (#25474)
adrianlizarraga Sep 3, 2025
df25f45
[CXX] Introduce C++ API for new C entry points (#25897)
yuslepukhin Sep 3, 2025
8f587b1
Migrate model tests to ONNX Model ZOO only (#25888)
kobby-kobbs Sep 3, 2025
ab71f1e
Remove std::string::data() non-const usage from public headers (#25943)
yuslepukhin Sep 4, 2025
2d36f04
Compile API: output model and initializer stream write functions (#25…
adrianlizarraga Sep 4, 2025
c5096d9
[TRT RTX EP] Fixing the stream parameter in CopyTensors API and passi…
praneshgo Sep 4, 2025
5ee309e
[MLAS] Add 8-bit weights ARM64 Gemm implementation (#25110)
hariharans29 Sep 4, 2025
157df9c
[NV TensorRT RTX] Handle unsupported data types (#25953)
ishwar-raut1 Sep 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove std::string::data() non-const usage from public headers (#25943)
### Description
<!-- Describe your changes. -->
Some compilers we use in our pipeline do not support string::data() nonconst
  • Loading branch information
yuslepukhin authored and tianleiwu committed Sep 4, 2025
commit ab71f1e1b5302a813d76d12a01a280a77e0dae7e
19 changes: 10 additions & 9 deletions include/onnxruntime/core/session/onnxruntime_cxx_inline.h
Original file line number Diff line number Diff line change
Expand Up @@ -2593,8 +2593,10 @@ struct GetValueImpl<std::string> {
std::string result;
if (size > 0) {
result.resize(size);
// some compilers in use do not support std::string::data() non-const
auto* buffer = &result[0];
status = Status{GetApi().ReadOpAttr(
attr, OrtOpAttrType::ORT_OP_ATTR_STRING, result.data(), size, &size)};
attr, OrtOpAttrType::ORT_OP_ATTR_STRING, buffer, size, &size)};
if (!status.IsOK()) return status;
}
out.swap(result);
Expand All @@ -2604,16 +2606,15 @@ struct GetValueImpl<std::string> {
auto status = CheckAttrType(attr, OrtOpAttrType::ORT_OP_ATTR_STRINGS);
if (!status.IsOK()) return status;

size_t total_buffer_size = GetDataSize(attr, OrtOpAttrType::ORT_OP_ATTR_STRINGS);

// Create a temporary buffer to hold the string data
std::vector<char> buffer(total_buffer_size);
status = Status{GetApi().ReadOpAttr(attr, OrtOpAttrType::ORT_OP_ATTR_STRINGS, buffer.data(),
total_buffer_size, &total_buffer_size)};
if (!status.IsOK()) return status;

std::vector<std::string> result;
size_t total_buffer_size = GetDataSize(attr, OrtOpAttrType::ORT_OP_ATTR_STRINGS);
if (total_buffer_size > 0) {
// Create a temporary buffer to hold the string data
std::vector<char> buffer(total_buffer_size);
status = Status{GetApi().ReadOpAttr(attr, OrtOpAttrType::ORT_OP_ATTR_STRINGS, buffer.data(),
total_buffer_size, &total_buffer_size)};
if (!status.IsOK()) return status;

const char* data = buffer.data();
const char* end = data + total_buffer_size;
while (data < end) {
Expand Down