You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I go about creating OrtValue tensors from ID3D12Resource and vice versa?
Just fyi, I am using directml as the provider and supplying the device and command queue and able to run inference fine with tensors created from a data buffer. I tried using the provided GetD3D12ResourceFromAllocation(...) function on the output tensor but not sure what the dml_allocation parameter is supposed to be? GetMutableTensorData(...) returns a pointer to a cpu buffer.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
How can I go about creating OrtValue tensors from ID3D12Resource and vice versa?
Just fyi, I am using directml as the provider and supplying the device and command queue and able to run inference fine with tensors created from a data buffer. I tried using the provided GetD3D12ResourceFromAllocation(...) function on the output tensor but not sure what the dml_allocation parameter is supposed to be? GetMutableTensorData(...) returns a pointer to a cpu buffer.
Beta Was this translation helpful? Give feedback.
All reactions