onnxruntime/include/onnxruntime/core
Scott McKay 33295ed883
Handle string initializers in constant folding (#17422)
### Description
<!-- Describe your changes. -->
* Allow either an allocator or a MemBuffer to be used when creating an
OrtValue from an TensorProto
* `Tensor<std::string>` requires an allocator to allocate/free the
string values
* Forcing the buffer to be allocated outside of the Tensor doesn't seem
to provide any benefit in this usage as the Tensor class disables copy
and assignment (so we wouldn't create 2 copies of the buffer via the
Tensor class that externally managing the would buffer avoid)
* New approach means we don't need to manage the buffers in the
optimizer Info class as the Tensor dtor will do that
* Update naming - MLValue was replaced by OrtValue a long time ago

### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
#17392
2023-09-27 21:15:58 +10:00
..
common remove gsl to make status.h independent from gsl (#17402) 2023-09-13 21:47:43 -07:00
eager Run clang-format in CI (#15524) 2023-04-18 09:26:58 -07:00
framework Handle string initializers in constant folding (#17422) 2023-09-27 21:15:58 +10:00
graph Remove redundant Resolve() after each inlined function (#17556) 2023-09-15 12:13:37 -07:00
optimizer fix compilation error in no absl build (#15769) 2023-05-02 08:20:49 -07:00
platform Re-implement stacktrace (#17173) 2023-08-16 16:07:49 -07:00
providers EP context for custom op (#16454) 2023-08-16 13:03:40 -07:00
session Patch lite custom op API (#17605) 2023-09-26 14:02:18 -07:00