Skip to content

Commit

Permalink
[ROCm] Fix bug for rocm ep build using MS GSL 4.0.0 (microsoft#13525)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeixuanZuo committed Nov 1, 2022
1 parent c8886c5 commit 6740528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orttraining/orttraining/training_ops/rocm/math/div_grad.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ TensorShapeVector prepended_dimension_1(const TensorShape& shape, size_t total_r
// https://github.com/onnx/onnx/blob/main/docs/Broadcasting.md
// for property 3 of Multidirectional Broadcasting, we need to prepended with a dimension of length 1.
if (input_rank > 0)
std::copy(shape.GetDims().cbegin(), shape.GetDims().cend(), &dims[total_rank - input_rank]);
std::copy(shape.GetDims().begin(), shape.GetDims().end(), &dims[total_rank - input_rank]);
return dims;
}

Expand Down

0 comments on commit 6740528

Please sign in to comment.