Skip to content

Commit 7884b24

Browse files
sharwellOceania2018
authored andcommitted
Fix CS1570 (XML comment has badly formed XML)
1 parent cef6ec0 commit 7884b24

File tree

12 files changed

+44
-51
lines changed

12 files changed

+44
-51
lines changed

Directory.Build.props

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@
1212
-->
1313
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1414
<NoWarn>$(NoWarn),1573,1591,1712</NoWarn>
15-
16-
<!--
17-
Suppress warnings for currently-invalid documentation comments.
18-
19-
CS1570: XML comment has badly formed XML
20-
-->
21-
<NoWarn>$(NoWarn),1570</NoWarn>
2215
</PropertyGroup>
2316

2417
</Project>

src/TensorFlowNET.Core/APIs/tf.array.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public Tensor batch_to_space_nd<T>(T input, int[] block_shape, int[,] crops, str
4848
/// <typeparam name="T1"></typeparam>
4949
/// <typeparam name="T2"></typeparam>
5050
/// <param name="tensor">N-D tensor.</param>
51-
/// <param name="mask">K-D boolean tensor, K <= N and K must be known statically.</param>
51+
/// <param name="mask">K-D boolean tensor, K &lt;= N and K must be known statically.</param>
5252
/// <param name="name"></param>
5353
/// <param name="axis">A 0-D int Tensor representing the axis in tensor to mask from. </param>
5454
/// <returns>(N-K+1)-dimensional tensor populated by entries in tensor corresponding to True values in mask.</returns>

src/TensorFlowNET.Core/APIs/tf.math.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public Tensor greater_equal<Tx, Ty>(Tx x, Ty y, string name = null)
170170
=> gen_math_ops.greater_equal(x, y, name);
171171

172172
/// <summary>
173-
/// Returns the truth value of (x < y) element-wise.
173+
/// Returns the truth value of (x &lt; y) element-wise.
174174
/// </summary>
175175
/// <typeparam name="Tx"></typeparam>
176176
/// <typeparam name="Ty"></typeparam>
@@ -191,7 +191,7 @@ public Tensor lgamma(Tensor x, string name = null)
191191
=> gen_math_ops.lgamma(x, name: name);
192192

193193
/// <summary>
194-
/// Returns the truth value of (x <= y) element-wise.
194+
/// Returns the truth value of (x &lt;= y) element-wise.
195195
/// </summary>
196196
/// <typeparam name="Tx"></typeparam>
197197
/// <typeparam name="Ty"></typeparam>
@@ -344,7 +344,7 @@ public Tensor maximum<T1, T2>(T1 x, T2 y, string name = null)
344344
=> gen_math_ops.maximum(x, y, name: name);
345345

346346
/// <summary>
347-
/// Returns the min of x and y (i.e. x < y ? x : y) element-wise.
347+
/// Returns the min of x and y (i.e. x &lt; y ? x : y) element-wise.
348348
/// </summary>
349349
/// <typeparam name="T1"></typeparam>
350350
/// <typeparam name="T2"></typeparam>

src/TensorFlowNET.Core/Eager/c_api.eager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ public delegate void delete_backward_function_callback(string op_name,
231231
/// <summary>
232232
///
233233
/// </summary>
234-
/// <param name="t">const tensorflow::Tensor&</param>
234+
/// <param name="t">const tensorflow::Tensor&amp;</param>
235235
/// <returns>TFE_TensorHandle*</returns>
236236
[DllImport(TensorFlowLibName)]
237237
public static extern TFE_TensorHandle TFE_NewTensorHandle(IntPtr t, SafeStatusHandle status);

src/TensorFlowNET.Core/Gradients/math_grad.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ private static Tensor[] _MinOrMaxGrad(Operation op, Tensor[] grads)
393393
}
394394

395395
/// <summary>
396-
/// Returns grad*(x > y, x <= y) with type of grad.
396+
/// Returns grad*(x > y, x &lt;= y) with type of grad.
397397
/// </summary>
398398
/// <param name="op"></param>
399399
/// <param name="grads"></param>
@@ -405,7 +405,7 @@ public static Tensor[] _MaximumGrad(Operation op, Tensor[] grads)
405405
}
406406

407407
/// <summary>
408-
/// Returns grad*(x < y, x >= y) with type of grad.
408+
/// Returns grad*(x &lt; y, x >= y) with type of grad.
409409
/// </summary>
410410
/// <param name="op"></param>
411411
/// <param name="grads"></param>

src/TensorFlowNET.Core/Operations/gen_logging_ops.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static Tensor histogram_summary(string tag, Tensor values, string name =
4545
/// Tags for the summary.
4646
/// </param>
4747
/// <param name="values">
48-
/// Same shape as <c>tags. Values for the summary.
48+
/// Same shape as <c>tags</c>. Values for the summary.
4949
/// </param>
5050
/// <param name="name">
5151
/// If specified, the created operation in the graph will be this one, otherwise it will be named 'ScalarSummary'.

src/TensorFlowNET.Core/Operations/gen_ops.cs

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6154,11 +6154,11 @@ public static Tensor crop_and_resize (Tensor image, Tensor boxes, Tensor box_ind
61546154
/// in normalized coordinates <c>[y1, x1, y2, x2]</c>. A normalized coordinate value of
61556155
/// <c>y</c> is mapped to the image coordinate at <c>y * (image_height - 1)</c>, so as the
61566156
/// <c>[0, 1]</c> interval of normalized image height is mapped to
6157-
/// <c>[0, image_height - 1] in image height coordinates. We do allow y1 &amp;gt; y2, in
6157+
/// <c>[0, image_height - 1]</c> in image height coordinates. We do allow y1 &amp;gt; y2, in
61586158
/// which case the sampled crop is an up-down flipped version of the original
61596159
/// image. The width dimension is treated similarly. Normalized coordinates
6160-
/// outside the </c>[0, 1]<c> range are allowed, in which case we use
6161-
/// </c>extrapolation_value<c> to extrapolate the input image values.
6160+
/// outside the <c>[0, 1]</c> range are allowed, in which case we use
6161+
/// <c>extrapolation_value</c> to extrapolate the input image values.
61626162
/// </param>
61636163
/// <param name="box_ind">
61646164
/// A 1-D tensor of shape <c>[num_boxes]</c> with int32 values in <c>[0, batch)</c>.
@@ -6200,11 +6200,11 @@ public static Tensor crop_and_resize_grad_boxes (Tensor grads, Tensor image, Ten
62006200
/// in normalized coordinates <c>[y1, x1, y2, x2]</c>. A normalized coordinate value of
62016201
/// <c>y</c> is mapped to the image coordinate at <c>y * (image_height - 1)</c>, so as the
62026202
/// <c>[0, 1]</c> interval of normalized image height is mapped to
6203-
/// <c>[0, image_height - 1] in image height coordinates. We do allow y1 &amp;gt; y2, in
6203+
/// <c>[0, image_height - 1]</c> in image height coordinates. We do allow y1 &amp;gt; y2, in
62046204
/// which case the sampled crop is an up-down flipped version of the original
62056205
/// image. The width dimension is treated similarly. Normalized coordinates
6206-
/// outside the </c>[0, 1]<c> range are allowed, in which case we use
6207-
/// </c>extrapolation_value<c> to extrapolate the input image values.
6206+
/// outside the <c>[0, 1]</c> range are allowed, in which case we use
6207+
/// <c>extrapolation_value</c> to extrapolate the input image values.
62086208
/// </param>
62096209
/// <param name="box_ind">
62106210
/// A 1-D tensor of shape <c>[num_boxes]</c> with int32 values in <c>[0, batch)</c>.
@@ -15982,9 +15982,9 @@ public static Tensor matrix_determinant (Tensor input, string name = "MatrixDete
1598215982
/// everything else padded with zeros. The diagonal is computed as follows:
1598315983
///
1598415984
/// Assume <c>diagonal</c> has <c>k</c> dimensions <c>[I, J, K, ..., N]</c>, then the output is a
15985-
/// tensor of rank <c>k+1</c> with dimensions [I, J, K, ..., N, N]<c> where:
15985+
/// tensor of rank <c>k+1</c> with dimensions <c>[I, J, K, ..., N, N]</c> where:
1598615986
///
15987-
/// </c>output[i, j, k, ..., m, n] = 1{m=n} * diagonal[i, j, k, ..., n]<c>.
15987+
/// <c>output[i, j, k, ..., m, n] = 1{m=n} * diagonal[i, j, k, ..., n]</c>.
1598815988
///
1598915989
/// For example:
1599015990
///
@@ -18540,7 +18540,8 @@ public static Tensor nth_element (Tensor input, Tensor n, bool? reverse = null,
1854018540
/// ][
1854118541
/// [0.0, 1.0, 0.0] // one_hot(1)
1854218542
/// [0.0, 0.0, 0.0] // one_hot(-1)
18543-
/// ]<c></c><c>
18543+
/// ]
18544+
/// </code>
1854418545
/// </remarks>
1854518546
public static Tensor one_hot (Tensor indices, Tensor depth, Tensor on_value, Tensor off_value, int? axis = null, string name = "OneHot")
1854618547
{
@@ -21850,7 +21851,6 @@ public static (Tensor activations, Tensor min_activations, Tensor max_activation
2185021851
/// The Operation can be fetched from any of the Tensorreturned in the tuple values, by fetching the Operation property.
2185121852
/// </returns>
2185221853
/// <remarks>
21853-
/// <code>
2185421854
/// </remarks>
2185521855
public static (Tensor output, Tensor output_min, Tensor output_max) quantized_reshape (Tensor tensor, Tensor shape, Tensor input_min, Tensor input_max, string name = "QuantizedReshape")
2185621856
{
@@ -26970,10 +26970,10 @@ public static Operation resource_sparse_apply_r_m_s_prop (Tensor var, Tensor ms,
2697026970
/// <remarks>
2697126971
/// The values of <c>value</c> are assigned to the positions in the variable
2697226972
/// <c>ref</c> that are selected by the slice parameters. The slice parameters
26973-
/// <c>begin, </c>end<c>, </c>strides<c>, etc. work exactly as in </c>StridedSlice<c>.
26973+
/// <c>begin</c>, <c>end</c>, <c>strides</c>, etc. work exactly as in <c>StridedSlice</c>.
2697426974
///
26975-
/// NOTE this op currently does not support broadcasting and so </c>value<c>'s
26976-
/// shape must be exactly the shape produced by the slice of </c>ref<c>.
26975+
/// NOTE this op currently does not support broadcasting and so <c>value</c>'s
26976+
/// shape must be exactly the shape produced by the slice of <c>ref</c>.
2697726977
/// </remarks>
2697826978
public static Operation resource_strided_slice_assign (Tensor referecne, Tensor begin, Tensor end, Tensor strides, Tensor value, int? begin_mask = null, int? end_mask = null, int? ellipsis_mask = null, int? new_axis_mask = null, int? shrink_axis_mask = null, string name = "ResourceStridedSliceAssign")
2697926979
{
@@ -28068,7 +28068,7 @@ public static Operation save_v2 (Tensor prefix, Tensor tensor_names, Tensor shap
2806828068
/// Tags for the summary.
2806928069
/// </param>
2807028070
/// <param name="values">
28071-
/// Same shape as <c>tags. Values for the summary.
28071+
/// Same shape as <c>tags</c>. Values for the summary.
2807228072
/// </param>
2807328073
/// <param name="name">
2807428074
/// If specified, the created operation in the graph will be this one, otherwise it will be named 'ScalarSummary'.
@@ -34548,10 +34548,10 @@ public static Tensor strided_slice (Tensor input, Tensor begin, Tensor end, Tens
3454834548
/// <remarks>
3454934549
/// The values of <c>value</c> are assigned to the positions in the variable
3455034550
/// <c>ref</c> that are selected by the slice parameters. The slice parameters
34551-
/// <c>begin, </c>end<c>, </c>strides<c>, etc. work exactly as in </c>StridedSlice<c>.
34551+
/// <c>begin</c>, <c>end</c>, <c>strides</c>, etc. work exactly as in <c>StridedSlice</c>.
3455234552
///
34553-
/// NOTE this op currently does not support broadcasting and so </c>value<c>'s
34554-
/// shape must be exactly the shape produced by the slice of </c>ref<c>.
34553+
/// NOTE this op currently does not support broadcasting and so <c>value</c>'s
34554+
/// shape must be exactly the shape produced by the slice of <c>ref</c>.
3455534555
/// </remarks>
3455634556
public static Tensor strided_slice_assign (Tensor referecne, Tensor begin, Tensor end, Tensor strides, Tensor value, int? begin_mask = null, int? end_mask = null, int? ellipsis_mask = null, int? new_axis_mask = null, int? shrink_axis_mask = null, string name = "StridedSliceAssign")
3455734557
{
@@ -36554,21 +36554,21 @@ public static Tensor tensor_array_split_v2 (Tensor handle, Tensor value, Tensor
3655436554
/// and that <c>value</c> has shape
3655536555
///
3655636556
/// <code>
36557-
/// (n0 + n1 + ... + n(T-1) x d0 x d1 x ...)<c></c><c>,
36557+
/// (n0 + n1 + ... + n(T-1) x d0 x d1 x ...)</code>,
3655836558
///
3655936559
/// this splits values into a TensorArray with T tensors.
3656036560
///
3656136561
/// TensorArray index t will be the subtensor of values with starting position
3656236562
///
36563-
/// </code>
36563+
/// <code>
3656436564
/// (n0 + n1 + ... + n(t-1), 0, 0, ...)
36565-
/// <code>
36565+
/// </code>
3656636566
///
3656736567
/// and having size
3656836568
///
36569-
/// </code>
36569+
/// <code>
3657036570
/// nt x d0 x d1 x ...
36571-
/// <code>
36571+
/// </code>
3657236572
/// </remarks>
3657336573
public static Tensor tensor_array_split_v3 (Tensor handle, Tensor value, Tensor lengths, Tensor flow_in, string name = "TensorArraySplitV3")
3657436574
{
@@ -38107,9 +38107,9 @@ public static (Tensor y, Tensor idx) unique (Tensor x, TF_DataType? out_idx = nu
3810738107
/// This operation also returns a tensor <c>idx</c> that is the same size as
3810838108
/// the number of the elements in <c>x</c> along the <c>axis</c> dimension. It
3810938109
/// contains the index in the unique output <c>y</c>.
38110-
/// In other words, for an <c>1-D</c> tensor <c>x</c> with <c>axis = None:
38110+
/// In other words, for an <c>1-D</c> tensor <c>x</c> with <c>axis = None</c>:
3811138111
///
38112-
/// </c>y[idx[i]] = x[i] for i in [0, 1,...,rank(x) - 1]<c>
38112+
/// <c>y[idx[i]] = x[i] for i in [0, 1,...,rank(x) - 1]</c>
3811338113
///
3811438114
/// For example:
3811538115
///
@@ -38120,7 +38120,7 @@ public static (Tensor y, Tensor idx) unique (Tensor x, TF_DataType? out_idx = nu
3812038120
/// idx ==&amp;gt; [0, 0, 1, 2, 2, 2, 3, 4, 4]
3812138121
/// </code>
3812238122
///
38123-
/// For an </c>2-D<c> tensor </c>x<c> with </c>axis = 0<c>:
38123+
/// For an <c>2-D</c> tensor <c>x</c> with <c>axis = 0</c>:
3812438124
///
3812538125
/// <code>
3812638126
/// # tensor 'x' is [[1, 0, 0],
@@ -38132,7 +38132,7 @@ public static (Tensor y, Tensor idx) unique (Tensor x, TF_DataType? out_idx = nu
3813238132
/// idx ==&amp;gt; [0, 0, 1]
3813338133
/// </code>
3813438134
///
38135-
/// For an </c>2-D<c> tensor </c>x<c> with </c>axis = 1<c>:
38135+
/// For an <c>2-D</c> tensor <c>x</c> with <c>axis = 1</c>:
3813638136
///
3813738137
/// <code>
3813838138
/// # tensor 'x' is [[1, 0, 0],
@@ -38241,9 +38241,9 @@ public static (Tensor y, Tensor idx, Tensor count) unique_with_counts (Tensor x,
3824138241
/// that are the same size as the number of the elements in <c>x</c> along the
3824238242
/// <c>axis</c> dimension. The <c>idx</c> contains the index in the unique output <c>y</c>
3824338243
/// and the <c>count</c> contains the count in the unique output <c>y</c>.
38244-
/// In other words, for an <c>1-D</c> tensor <c>x</c> with <c>axis = None:
38244+
/// In other words, for an <c>1-D</c> tensor <c>x</c> with <c>axis = None</c>:
3824538245
///
38246-
/// </c>y[idx[i]] = x[i] for i in [0, 1,...,rank(x) - 1]<c>
38246+
/// <c>y[idx[i]] = x[i] for i in [0, 1,...,rank(x) - 1]</c>
3824738247
///
3824838248
/// For example:
3824938249
///
@@ -38255,7 +38255,7 @@ public static (Tensor y, Tensor idx, Tensor count) unique_with_counts (Tensor x,
3825538255
/// count ==&amp;gt; [2, 1, 3, 1, 2]
3825638256
/// </code>
3825738257
///
38258-
/// For an </c>2-D<c> tensor </c>x<c> with </c>axis = 0<c>:
38258+
/// For an <c>2-D</c> tensor <c>x</c> with <c>axis = 0</c>:
3825938259
///
3826038260
/// <code>
3826138261
/// # tensor 'x' is [[1, 0, 0],
@@ -38268,7 +38268,7 @@ public static (Tensor y, Tensor idx, Tensor count) unique_with_counts (Tensor x,
3826838268
/// count ==&amp;gt; [2, 1]
3826938269
/// </code>
3827038270
///
38271-
/// For an </c>2-D<c> tensor </c>x<c> with </c>axis = 1<c>:
38271+
/// For an <c>2-D</c> tensor <c>x</c> with <c>axis = 1</c>:
3827238272
///
3827338273
/// <code>
3827438274
/// # tensor 'x' is [[1, 0, 0],

src/TensorFlowNET.Core/Operations/math_ops.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,10 +406,10 @@ public static Tensor realdiv(Tensor x, Tensor y, string name = null)
406406
/// Unless `keepdims` is true, the rank of the tensor is reduced by 1 for each
407407
/// entry in `axis`. If `keepdims` is true, the reduced dimensions
408408
/// are retained with length 1.
409-
409+
///
410410
/// If `axis` has no entries, all dimensions are reduced, and a
411411
/// tensor with a single element is returned.
412-
412+
///
413413
/// This function is more numerically stable than log(sum(exp(input))). It avoids
414414
/// overflows caused by taking the exp of large inputs and underflows caused by
415415
/// taking the log of small inputs.

src/TensorFlowNET.Core/Status/c_api.status.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public partial class c_api
5454
public static extern SafeStatusHandle TF_NewStatus();
5555

5656
/// <summary>
57-
/// Record <code, msg> in *s. Any previous information is lost.
57+
/// Record &lt;code, msg> in *s. Any previous information is lost.
5858
/// A common use is to clear a status: TF_SetStatus(s, TF_OK, "");
5959
/// </summary>
6060
/// <param name="s"></param>

src/TensorFlowNET.Core/Summaries/Summary.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public Tensor scalar(string name, Tensor tensor, string[] collections = null, st
7474
/// <summary>
7575
/// Adds keys to a collection.
7676
/// </summary>
77-
/// <param name="val"The value to add per each key.></param>
77+
/// <param name="val">The value to add per each key.</param>
7878
/// <param name="collections">A collection of keys to add.</param>
7979
/// <param name="default_collections">Used if collections is None.</param>
8080
public void collect(ITensorOrOperation val, List<string> collections, List<string> default_collections)

src/TensorFlowNET.Core/Tensors/c_api.tensor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public partial class c_api
5656

5757
/// <summary>
5858
/// Return the length of the tensor in the "dim_index" dimension.
59-
/// REQUIRES: 0 <= dim_index < TF_NumDims(tensor)
59+
/// REQUIRES: 0 &lt;= dim_index &lt; TF_NumDims(tensor)
6060
/// </summary>
6161
/// <param name="tensor"></param>
6262
/// <param name="dim_index"></param>

src/TensorFlowNET.Core/ops.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public static Tensor internal_convert_to_tensor_or_composite(Tensor value, TF_Da
124124
/// Wrapper for `Graph.control_dependencies()` using the default graph.
125125
///
126126
/// See `tf.Graph.control_dependencies` for more details.
127-
127+
///
128128
/// When eager execution is enabled, any callable object in the `control_inputs`
129129
/// list will be called.
130130
/// </summary>

0 commit comments

Comments
 (0)