Skip to content

Commit 786b266

Browse files
author
Beacontownfc
committed
Modify according to the reviewer's comments
1 parent 3805771 commit 786b266

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ limitations under the License.
1717
using System.Xml.Linq;
1818
using Tensorflow.Operations;
1919
using Tensorflow.Operations.Activation;
20-
//using static System.Formats.Asn1.AsnWriter;
2120
using static Tensorflow.Binding;
2221

2322
namespace Tensorflow
@@ -127,6 +126,18 @@ public Tensor[] fused_batch_norm(Tensor x,
127126
is_training: is_training,
128127
name: name,
129128
exponential_avg_factor: exponential_avg_factor);
129+
130+
/// <summary>
131+
/// Normalizes a tensor by `mean` and `variance`, and applies (optionally) a`scale` \\(\gamma\\) to it, as well as an `offset` \\(\beta\\).
132+
/// </summary>
133+
/// <param name="x">A floating point tensor.</param>
134+
/// <param name="mean">A mean `Tensor`.</param>
135+
/// <param name="variance">A variance `Tensor`.</param>
136+
/// <param name="offset"> An offset `Tensor`, often denoted \\(\beta\\) in equations, or NULL. If present, will be added to the normalized tensor.</param>
137+
/// <param name="scale"> A scale `Tensor`, often denoted \\(\gamma\\) in equations, or NULL. If present, the scale is applied to the normalized tensor.</param>
138+
/// <param name="variance_epsilon"> A small float number to avoid dividing by 0.</param>
139+
/// <param name="name">A name for this operation.</param>
140+
/// <returns>the normalized, scaled, offset tensor.</returns>
130141
public Tensor batch_normalization(Tensor x,
131142
Tensor mean,
132143
Tensor variance,

0 commit comments

Comments
 (0)