Crash in ResizeHelper::Initialize executing a model on ARM64 #18628
Labels
ep:DML
issues related to the DirectML execution provider
model:transformer
issues related to a transformer model: BERT, GPT2, Hugging Face, Longformer, T5, etc.
platform:windows
issues related to the Windows platform
Porting an ORT C++ application from x64 to ARM64
Using a huggingspace runwayml\stable-diffusion-v1-5 model (http://huggingface.cp/runwayml/stable-diffusion-v1.5) optimized with MS Olive:
(python stable_diffusion.py --optimize --model_id=runwayml/stable-diffusion-v1-5
Crash (using latest version of ORT) occurs with inferring this model: unet\model.onnx
ORT built with:
build.bat --parallel --cmake_generator "Visual Studio 17 2022" --config=Debug --skip_tests --use-dml --arm64 --build_shared_lib
Seems to involve the up_blocks.0/upsamplers.0/Resize node
In ResizerHelper::Initialize the m_scales values are all 0 (0,0,0,0) which causes the crash (note: on x64 they are (1,1,2,2):
float scale = m_scales[i];
ML_CHECK_VALID_ARGUMENT(scale > FLT_EPSILON, "Scale values should be positive.");
Full Call Stack is here:
The text was updated successfully, but these errors were encountered: