Open markhfeldman opened 11 months ago
@markhfeldman DirectML Resize operator was updated in #19071, could you update to ORT 1.18 and see if this bug still repros? If it does could you please include device info and if possible, more isolated steps to reproduce the bug. Thanks!
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: