diff --git a/onnxruntime/core/providers/webgpu/tensor/slice.cc b/onnxruntime/core/providers/webgpu/tensor/slice.cc index c699eec80242e..fc6187925e932 100644 --- a/onnxruntime/core/providers/webgpu/tensor/slice.cc +++ b/onnxruntime/core/providers/webgpu/tensor/slice.cc @@ -135,14 +135,18 @@ Status Slice::ComputeInternal(ComputeContext& context) const { std::vector starts; for (unsigned int i = 0; i < starts_raw.size(); i++) { int64_t val = starts_raw[i]; + std::cout << "val: " << val << std::endl; if (val < 0) { val += input_shape[axes_raw[i]]; } + std::cout << "val after handling negative: " << val << std::endl; + if (steps_raw[i] < 0) { val = std::max(static_cast(0), std::min(val, static_cast(input_shape[axes_raw[i]] - 1))); } else { val = std::max(static_cast(0), std::min(val, static_cast(input_shape[axes_raw[i]]))); } + std::cout << "val after clamping: " << val << std::endl; starts.push_back(static_cast(val)); } diff --git a/tools/ci_build/github/azure-pipelines/templates/mac-cpu-packaging-steps.yml b/tools/ci_build/github/azure-pipelines/templates/mac-cpu-packaging-steps.yml index 84f517a81686d..35d2caef132b6 100644 --- a/tools/ci_build/github/azure-pipelines/templates/mac-cpu-packaging-steps.yml +++ b/tools/ci_build/github/azure-pipelines/templates/mac-cpu-packaging-steps.yml @@ -57,7 +57,7 @@ steps: - ${{ if eq(parameters.MacosArch, 'x86_64') }}: - script: | - python3 $(Build.SourcesDirectory)/tools/ci_build/build.py --test ${{ parameters.AdditionalBuildFlags }} --build_dir $(Build.BinariesDirectory) --skip_submodule_sync --parallel --use_binskim_compliant_compile_flags --build_shared_lib --config Release + python3 $(Build.SourcesDirectory)/tools/ci_build/build.py --test ${{ parameters.AdditionalBuildFlags }} --build_dir $(Build.BinariesDirectory) --skip_submodule_sync --use_binskim_compliant_compile_flags --build_shared_lib --config Release displayName: 'Running Tests' - task: ShellScript@2