I've already tried this method :
pip uninstall onnxruntime onnxruntime-directml
pip install onnxruntime-directml==1.16.3

And this one too
pip uninstall onnxruntime onnxruntime-directml
pip install onnxruntime-directml==1.15.1

but it always doesn't work and writes this error
please help