onnxruntime
e5ce1b30 - [DML EP] Support in-memory external data TensorProto (#24391)

Commit
253 days ago
[DML EP] Support in-memory external data TensorProto (#24391) ### Description TensorProto may have external data in existing memory buffer. For those TensorProto, the 'location' field of the external data info is set to a special marker `*/_ORT_MEM_ADDR_/*`, and the 'offset' field contains the address of the memory buffer. This PR allows DirectML EP to recognize in-memory external data TensorProto and use the address of existing memory buffer containing the external data. ### Motivation and Context Applications using ModelEditor API may create initializers with existing buffer to save memory, such as WebNN. This fix allows DirectML EP can be used by those applications. --------- Co-authored-by: Dwayne Robinson <fdwr@hotmail.com>
Author
Parents
Loading