diff --git a/onnxruntime/core/providers/webnn/builders/helper.h b/onnxruntime/core/providers/webnn/builders/helper.h index a19db9dc2fe75..d94729e60d029 100644 --- a/onnxruntime/core/providers/webnn/builders/helper.h +++ b/onnxruntime/core/providers/webnn/builders/helper.h @@ -54,7 +54,7 @@ std::string GetShapeString(std::vector& shape) { return shape_info.str(); } -inline std::string GetTensorName(const ConstPointerContainer>& input_defs, const size_t index) { +inline std::string GetTensorName(const ConstPointerContainer>& input_defs, const size_t index) { return (input_defs.size() > index) ? std::string(input_defs[index]->Name()) : ""; }