Skip to content

Commit 954e69a

Browse files
jtrmaldanpovey
authored andcommitted
[src] make e2e/"unconstrained" numerator computation faster (#2392)
1 parent e18191c commit 954e69a

File tree

7 files changed

+388
-313
lines changed

7 files changed

+388
-313
lines changed

COPYING

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ contributors and original source material as well as the full text of the Apache
5656
License v 2.0 are set forth below.
5757

5858
Individual Contributors (in alphabetical order)
59-
59+
6060
Mohit Agarwal
6161
Tanel Alumae
6262
Gilles Boulianne
@@ -123,7 +123,7 @@ Individual Contributors (in alphabetical order)
123123
Haihua Xu
124124
Hainan Xu
125125
Xiaohui Zhang
126-
126+
127127
Other Source Material
128128

129129
This project includes a port and modification of materials from JAMA: A Java
@@ -136,9 +136,9 @@ Other Source Material
136136
"Signal processing with lapped transforms," Artech House, Inc., 1992. The
137137
current copyright holder, Henrique S. Malvar, has given his permission for the
138138
release of this modified version under the Apache License 2.0.
139-
140-
This project includes material from the OpenFST Library v1.2.7 available at
141-
http://www.openfst.org and released under the Apache License v. 2.0.
139+
140+
This project includes material from the OpenFST Library v1.2.7 available at
141+
http://www.openfst.org and released under the Apache License v. 2.0.
142142

143143
[OpenFst COPYING file begins here]
144144

@@ -147,7 +147,7 @@ Other Source Material
147147
You may obtain a copy of the License at
148148

149149
http://www.apache.org/licenses/LICENSE-2.0
150-
150+
151151
Unless required by applicable law or agreed to in writing, software
152152
distributed under the License is distributed on an "AS IS" BASIS,
153153
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

src/base/kaldi-math.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ inline Float RandPrune(Float post, BaseFloat prune_thresh,
183183

184184
inline double LogAdd(double x, double y) {
185185
double diff;
186+
186187
if (x < y) {
187188
diff = x - y;
188189
x = y;
@@ -203,6 +204,7 @@ inline double LogAdd(double x, double y) {
203204

204205
inline float LogAdd(float x, float y) {
205206
float diff;
207+
206208
if (x < y) {
207209
diff = x - y;
208210
x = y;

0 commit comments

Comments
 (0)