Skip to content

Commit

Permalink
[src] make e2e/"unconstrained" numerator computation faster (#2392)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtrmal authored and danpovey committed May 7, 2018
1 parent e18191c commit 954e69a
Show file tree
Hide file tree
Showing 7 changed files with 388 additions and 313 deletions.
12 changes: 6 additions & 6 deletions COPYING
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ contributors and original source material as well as the full text of the Apache
License v 2.0 are set forth below.

Individual Contributors (in alphabetical order)

Mohit Agarwal
Tanel Alumae
Gilles Boulianne
Expand Down Expand Up @@ -123,7 +123,7 @@ Individual Contributors (in alphabetical order)
Haihua Xu
Hainan Xu
Xiaohui Zhang

Other Source Material

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

This project includes material from the OpenFST Library v1.2.7 available at
http://www.openfst.org and released under the Apache License v. 2.0.

[OpenFst COPYING file begins here]

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

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand Down
2 changes: 2 additions & 0 deletions src/base/kaldi-math.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ inline Float RandPrune(Float post, BaseFloat prune_thresh,

inline double LogAdd(double x, double y) {
double diff;

if (x < y) {
diff = x - y;
x = y;
Expand All @@ -203,6 +204,7 @@ inline double LogAdd(double x, double y) {

inline float LogAdd(float x, float y) {
float diff;

if (x < y) {
diff = x - y;
x = y;
Expand Down
Loading

0 comments on commit 954e69a

Please sign in to comment.