From ccd7a2d8407c37c264258cb79725cd2cb6b31328 Mon Sep 17 00:00:00 2001 From: Pallavi Deshmukh Date: Wed, 16 Feb 2022 13:07:02 -0800 Subject: [PATCH] Fix build failure when using clang compiler --- orttraining/orttraining/eager/ort_ops.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/orttraining/orttraining/eager/ort_ops.cpp b/orttraining/orttraining/eager/ort_ops.cpp index 07a8de9d7f..d18c8958e3 100644 --- a/orttraining/orttraining/eager/ort_ops.cpp +++ b/orttraining/orttraining/eager/ort_ops.cpp @@ -31,7 +31,10 @@ void createInplaceOutputValue(OrtValue& input, V shape, OrtValue* p_mlv } template void createInplaceOutputValue(OrtValue& input, c10::ArrayRef shape, OrtValue* p_mlvalue); -template void createInplaceOutputValue(OrtValue& input, std::vector shape, OrtValue* p_mlvalue); + +template +using Vector = std::vector>; +template void createInplaceOutputValue(OrtValue& input, Vector shape, OrtValue* p_mlvalue); } // namespace eager } // namespace torch_ort