Skip to content

Commit 2a7da79

Browse files
committed
fbshipit-source-id: e833f2d6926cd4dd03063cc657886685a84b7b14
1 parent 2ae710c commit 2a7da79

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

flashlight/autograd/Variable.h

+5-4
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ class Variable {
222222

223223
/**
224224
* Run backward pass on the Variable. Gradient of all the inputs
225-
* in the computation graph leading up to the Variable on which the function is
226-
* computed.
225+
* in the computation graph leading up to the Variable on which the function
226+
* is computed.
227227
* @param[in] grad gradient w.r.t to the Variable
228228
* @param[in] retainGraph If False, clears the input Variables stored
229229
* by the Variable
@@ -232,8 +232,9 @@ class Variable {
232232

233233
/**
234234
* Run backward pass on the Variable. Gradient of all the inputs
235-
* in the computation graph leading up to the Variable on which the function is
236-
* computed. Gradient w.r.t the all the elements in the variable is set to 1.0
235+
* in the computation graph leading up to the Variable on which the function
236+
* is computed. Gradient w.r.t the all the elements in the variable is set
237+
* to 1.0
237238
* @param[in] retainGraph If False, clears the input Variables stored
238239
* by the Variable
239240
*/

flashlight/nn/modules/AdaptiveSoftMaxLoss.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ class AdaptiveSoftMaxLoss : public BinaryModule {
6565
* first tail bucket will contain `50 - 5 = 45` targets (subtracting the size
6666
* of the head bucket), the second tail bucket will contain `100 - 50 = 50`
6767
* targets (subtracting the size of the first tail bucket). Cutoffs must be
68-
* specified to accommodate all targets: any remaining targets are not assigned
69-
* to an 'overflow' bucket.
68+
* specified to accommodate all targets: any remaining targets are not
69+
* assigned to an 'overflow' bucket.
7070
* @param div_value determines the number of hidden units in the intermediate
7171
* layer for each tail bucket:
7272
* \f[

0 commit comments

Comments
 (0)