Skip to content

Commit 02d9023

Browse files
sharwellOceania2018
authored andcommitted
Fix CS1587 (XML comment is not placed on a valid language element)
1 parent 5e2aa2b commit 02d9023

File tree

5 files changed

+20
-21
lines changed

5 files changed

+20
-21
lines changed

Directory.Build.props

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818
1919
CS1570: XML comment has badly formed XML
2020
CS1572: XML comment has a param tag, but there is no parameter by that name
21-
CS1587: XML comment is not placed on a valid language element
2221
-->
23-
<NoWarn>$(NoWarn),1570,1572,1587</NoWarn>
22+
<NoWarn>$(NoWarn),1570,1572</NoWarn>
2423
</PropertyGroup>
2524

2625
</Project>

src/TensorFlowNET.Core/Gradients/gradients_util.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ public static Tensor[] _GradientsHelper(Tensor[] ys,
4747
grad_ys = new Tensor[ys.Length];
4848

4949
// Iterate over the collected ops.
50-
/**
50+
/*
5151
* grads: op => list of gradients received on each output endpoint of the
5252
* op. The gradients for each endpoint are initially collected as a list.
5353
* When it is time to call the op's gradient function, for each endpoint we
5454
* aggregate the list of received gradients into a Add() Operation if there
5555
* is more than one.
56-
**/
56+
*/
5757
var grads = new Dictionary<string, List<List<Tensor>>>();
5858
Operation[] reachable_to_ops = null;
5959
ControlFlowState loop_state = null;
@@ -70,14 +70,14 @@ public static Tensor[] _GradientsHelper(Tensor[] ys,
7070
xs = ops.internal_convert_n_to_tensor_or_indexed_slices(xs, name: "x", as_ref: true);
7171
grad_ys = _DefaultGradYs(grad_ys, ys, colocate_gradients_with_ops, gradient_uid);
7272

73-
/**
73+
/*
7474
* The approach we take here is as follows: Create a list of all ops in the
7575
* subgraph between the ys and xs. Visit these ops in reverse order of ids
7676
* to ensure that when we visit an op the gradients w.r.t its outputs have
7777
* been collected. Then aggregate these gradients if needed, call the op's
7878
* gradient function, and add the generated gradients to the gradients for
7979
* its input.
80-
**/
80+
*/
8181

8282
// Initialize the pending count for ops in the connected subgraph from ys
8383
// to the xs.

src/TensorFlowNET.Core/Graphs/c_api.graph.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public partial class c_api
178178
/// <summary>
179179
/// Add an operation in `graph_def` to be returned via the `return_opers` output
180180
/// parameter of TF_GraphImportGraphDef(). `oper_name` is copied and has no
181-
// lifetime requirements.
181+
/// lifetime requirements.
182182
/// </summary>
183183
/// <param name="opts">TF_ImportGraphDefOptions* opts</param>
184184
/// <param name="oper_name">const char*</param>

src/TensorFlowNET.Core/Operations/Distributions/distribution.py.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ public TF_DataType dtype()
9797
}
9898

9999

100+
/*
100101
/// <summary>
101102
/// Constructs the `Distribution'
102103
/// **This is a private method for subclass use.**
@@ -117,7 +118,6 @@ public TF_DataType dtype()
117118
/// <param name = "name"> Name prefixed to Ops created by this class. Default: subclass name.</param>
118119
/// <returns> Two `Tensor` objects: `mean` and `variance`.</returns>
119120
120-
/*
121121
private Distribution (
122122
TF_DataType dtype,
123123
ReparameterizationType reparameterization_type,

test/TensorFlowNET.UnitTest/Utilities/PrivateType.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -548,19 +548,19 @@ internal static void CheckParameterNotNull(object param, string parameterName, s
548548
}
549549
}
550550

551-
/// <summary>
552-
/// The check parameter not null or empty.
553-
/// </summary>
554-
/// <param name="param">
555-
/// The parameter.
556-
/// </param>
557-
/// <param name="parameterName">
558-
/// The parameter name.
559-
/// </param>
560-
/// <param name="message">
561-
/// The message.
562-
/// </param>
563-
/// <exception cref="ArgumentException"> Throws ArgumentException when parameter is null. </exception>
551+
///// <summary>
552+
///// The check parameter not null or empty.
553+
///// </summary>
554+
///// <param name="param">
555+
///// The parameter.
556+
///// </param>
557+
///// <param name="parameterName">
558+
///// The parameter name.
559+
///// </param>
560+
///// <param name="message">
561+
///// The message.
562+
///// </param>
563+
///// <exception cref="ArgumentException"> Throws ArgumentException when parameter is null. </exception>
564564
//internal static void CheckParameterNotNullOrEmpty(string param, string parameterName, string message)
565565
//{
566566
// if (string.IsNullOrEmpty(param))

0 commit comments

Comments
 (0)