From dda5a6207275b330c1571d13f27a3270dcf6e54f Mon Sep 17 00:00:00 2001 From: Dmitri Smirnov Date: Fri, 5 Feb 2021 18:07:03 -0800 Subject: [PATCH] Fix updated Doxygen errors. (#6588) --- .../Tensors/Tensor.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/csharp/src/Microsoft.ML.OnnxRuntime/Tensors/Tensor.cs b/csharp/src/Microsoft.ML.OnnxRuntime/Tensors/Tensor.cs index 21613a2fab5f6..9dc3c256ce886 100644 --- a/csharp/src/Microsoft.ML.OnnxRuntime/Tensors/Tensor.cs +++ b/csharp/src/Microsoft.ML.OnnxRuntime/Tensors/Tensor.cs @@ -922,6 +922,12 @@ public Tensor GetUpperTriangle(int offset) return GetTriangle(offset, upper: true); } + /// + /// Implementation method for GetTriangle, GetLowerTriangle, GetUpperTriangle + /// + /// Offset of diagonal to set in returned tensor. + /// true for upper triangular and false otherwise + /// public Tensor GetTriangle(int offset, bool upper) { if (Rank < 2) @@ -1158,8 +1164,16 @@ object IList.this[int index] } } + /// + /// Always fixed size Tensor + /// + /// always true public bool IsFixedSize => true; + /// + /// Tensor is not readonly + /// + /// always false public bool IsReadOnly => false; int IList.Add(object value) @@ -1566,6 +1580,11 @@ public virtual DenseTensor ToDenseTensor() #endregion + /// + /// Get a string representation of Tensor + /// + /// + /// public string GetArrayString(bool includeWhitespace = true) { var builder = new StringBuilder();