Skip to content

Commit

Permalink
apply iwyu changes
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj authored and github-actions[bot] committed Apr 13, 2024
1 parent b50c436 commit cfcc7de
Show file tree
Hide file tree
Showing 27 changed files with 83 additions and 5 deletions.
3 changes: 3 additions & 0 deletions kaldi-native-fbank/csrc/feature-fbank.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@
#include <cmath>
#include <limits>
#include <vector>
#include <ostream>
#include <utility>

#include "kaldi-native-fbank/csrc/feature-functions.h"
#include "kaldi-native-fbank/csrc/log.h"

namespace knf {

Expand Down
2 changes: 2 additions & 0 deletions kaldi-native-fbank/csrc/feature-fbank.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@
#ifndef KALDI_NATIVE_FBANK_CSRC_FEATURE_FBANK_H_
#define KALDI_NATIVE_FBANK_CSRC_FEATURE_FBANK_H_

#include <stdint.h>
#include <map>
#include <string>
#include <vector>
#include <sstream>

#include "kaldi-native-fbank/csrc/feature-window.h"
#include "kaldi-native-fbank/csrc/mel-computations.h"
Expand Down
1 change: 1 addition & 0 deletions kaldi-native-fbank/csrc/feature-window.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include "kaldi-native-fbank/csrc/feature-window.h"

#include <stddef.h>
#include <algorithm>
#include <cmath>
#include <limits>
Expand Down
1 change: 1 addition & 0 deletions kaldi-native-fbank/csrc/feature-window.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#ifndef KALDI_NATIVE_FBANK_CSRC_FEATURE_WINDOW_H_
#define KALDI_NATIVE_FBANK_CSRC_FEATURE_WINDOW_H_

#include <stdint.h>
#include <sstream>
#include <string>
#include <vector>
Expand Down
2 changes: 2 additions & 0 deletions kaldi-native-fbank/csrc/mel-computations.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@

#include "kaldi-native-fbank/csrc/mel-computations.h"

#include <stdio.h>
#include <algorithm>
#include <sstream>
#include <vector>

#include "kaldi-native-fbank/csrc/feature-window.h"
#include "kaldi-native-fbank/csrc/log.h"

namespace knf {

Expand Down
3 changes: 3 additions & 0 deletions kaldi-native-fbank/csrc/mel-computations.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@
#ifndef KALDI_NATIVE_FBANK_CSRC_MEL_COMPUTATIONS_H_
#define KALDI_NATIVE_FBANK_CSRC_MEL_COMPUTATIONS_H_

#include <stdint.h>
#include <cmath>
#include <string>
#include <utility>
#include <vector>
#include <sstream>

#include "kaldi-native-fbank/csrc/feature-window.h"

namespace knf {
struct FrameExtractionOptions;

struct MelBanksOptions {
int32_t num_bins = 25; // e.g. 25; number of triangular bins
Expand Down
1 change: 1 addition & 0 deletions kaldi-native-fbank/csrc/online-feature.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#include "kaldi-native-fbank/csrc/online-feature.h"

#include <stddef.h>
#include <algorithm>
#include <utility>
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions kaldi-native-fbank/csrc/online-feature.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

#include "kaldi-native-fbank/csrc/feature-fbank.h"
#include "kaldi-native-fbank/csrc/whisper-feature.h"
#include "kaldi-native-fbank/csrc/feature-window.h"

namespace knf {

Expand Down
2 changes: 2 additions & 0 deletions kaldi-native-fbank/csrc/rfft.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#ifndef KALDI_NATIVE_FBANK_CSRC_RFFT_H_
#define KALDI_NATIVE_FBANK_CSRC_RFFT_H_

#include <stdint.h>
#include <memory>

namespace knf {
Expand Down Expand Up @@ -48,6 +49,7 @@ class Rfft {

private:
class RfftImpl;

std::unique_ptr<RfftImpl> impl_;
};

Expand Down
3 changes: 0 additions & 3 deletions kaldi-native-fbank/csrc/test-log.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
* limitations under the License.
*/

#include "gtest/gtest.h"
#include "kaldi-native-fbank/csrc/log.h"

namespace knf {

#if KNF_ENABLE_CHECK
Expand Down
6 changes: 6 additions & 0 deletions kaldi-native-fbank/csrc/test-online-fbank.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,15 @@
* limitations under the License.
*/

#include <stdint.h>
#include <iostream>
#include <sstream>
#include <string>

#include "kaldi-native-fbank/csrc/online-feature.h"
#include "kaldi-native-fbank/csrc/feature-fbank.h"
#include "kaldi-native-fbank/csrc/feature-window.h"
#include "kaldi-native-fbank/csrc/mel-computations.h"

int main() {
knf::FbankOptions opts;
Expand Down
3 changes: 3 additions & 0 deletions kaldi-native-fbank/csrc/test-rfft.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
* limitations under the License.
*/

#include <stdint.h>
#include <vector>

#include "gtest/gtest.h"
#include "kaldi-native-fbank/csrc/rfft.h"

Expand Down
2 changes: 2 additions & 0 deletions kaldi-native-fbank/csrc/whisper-feature.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@

#include <cmath>
#include <vector>
#include <string>

#include "kaldi-native-fbank/csrc/mel-computations.h"
#include "kaldi-native-fbank/csrc/log.h"

#ifndef M_2PI
#define M_2PI 6.283185307179586476925286766559005
Expand Down
1 change: 1 addition & 0 deletions kaldi-native-fbank/csrc/whisper-feature.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#ifndef KALDI_NATIVE_FBANK_CSRC_WHISPER_FEATURE_H_
#define KALDI_NATIVE_FBANK_CSRC_WHISPER_FEATURE_H_

#include <stdint.h>
#include <memory>
#include <vector>

Expand Down
9 changes: 8 additions & 1 deletion kaldi-native-fbank/python/csrc/feature-fbank.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,18 @@

#include "kaldi-native-fbank/python/csrc/feature-fbank.h"

#include <memory>
#include <abstract.h>
#include <floatobject.h>
#include <longobject.h>
#include <pybind11/detail/descr.h>
#include <pybind11/pytypes.h>
#include <pyerrors.h>
#include <string>

#include "kaldi-native-fbank/csrc/feature-fbank.h"
#include "kaldi-native-fbank/python/csrc/utils.h"
#include "kaldi-native-fbank/csrc/feature-window.h"
#include "kaldi-native-fbank/csrc/mel-computations.h"

namespace knf {

Expand Down
2 changes: 2 additions & 0 deletions kaldi-native-fbank/python/csrc/feature-fbank.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#ifndef KALDI_NATIVE_FBANK_PYTHON_CSRC_FEATURE_FBANK_H_
#define KALDI_NATIVE_FBANK_PYTHON_CSRC_FEATURE_FBANK_H_

#include <pybind11/pybind11.h>

#include "kaldi-native-fbank/python/csrc/kaldi-native-fbank.h"

namespace knf {
Expand Down
7 changes: 7 additions & 0 deletions kaldi-native-fbank/python/csrc/feature-window.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@

#include "kaldi-native-fbank/python/csrc/feature-window.h"

#include <abstract.h>
#include <floatobject.h>
#include <longobject.h>
#include <pybind11/cast.h>
#include <pybind11/detail/descr.h>
#include <pybind11/pytypes.h>
#include <pyerrors.h>
#include <string>
#include <vector>

Expand Down
2 changes: 2 additions & 0 deletions kaldi-native-fbank/python/csrc/feature-window.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#ifndef KALDI_NATIVE_FBANK_PYTHON_CSRC_FEATURE_WINDOW_H_
#define KALDI_NATIVE_FBANK_PYTHON_CSRC_FEATURE_WINDOW_H_

#include <pybind11/pybind11.h>

#include "kaldi-native-fbank/python/csrc/kaldi-native-fbank.h"

namespace knf {
Expand Down
3 changes: 3 additions & 0 deletions kaldi-native-fbank/python/csrc/kaldi-native-fbank.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@

#include "kaldi-native-fbank/python/csrc/kaldi-native-fbank.h"

#include <pybind11/pybind11.h>
#include <pybind11/pytypes.h>

#include "kaldi-native-fbank/python/csrc/feature-fbank.h"
#include "kaldi-native-fbank/python/csrc/feature-window.h"
#include "kaldi-native-fbank/python/csrc/mel-computations.h"
Expand Down
3 changes: 3 additions & 0 deletions kaldi-native-fbank/python/csrc/kaldi-native-fbank.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@
#ifndef KALDI_NATIVE_FBANK_PYTHON_CSRC_KALDI_NATIVE_FBANK_H_
#define KALDI_NATIVE_FBANK_PYTHON_CSRC_KALDI_NATIVE_FBANK_H_

#include <pybind11/detail/common.h>

#include "pybind11/numpy.h"
#include "pybind11/pybind11.h"
#include "pybind11/stl.h"

namespace py = pybind11;

#endif // KALDI_NATIVE_FBANK_PYTHON_CSRC_KALDI_NATIVE_FBANK_H_
6 changes: 6 additions & 0 deletions kaldi-native-fbank/python/csrc/mel-computations.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@

#include "kaldi-native-fbank/python/csrc/mel-computations.h"

#include <abstract.h>
#include <floatobject.h>
#include <longobject.h>
#include <pybind11/detail/descr.h>
#include <pybind11/pytypes.h>
#include <pyerrors.h>
#include <string>

#include "kaldi-native-fbank/csrc/mel-computations.h"
Expand Down
2 changes: 2 additions & 0 deletions kaldi-native-fbank/python/csrc/mel-computations.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#ifndef KALDI_NATIVE_FBANK_PYTHON_CSRC_MEL_COMPUTATIONS_H_
#define KALDI_NATIVE_FBANK_PYTHON_CSRC_MEL_COMPUTATIONS_H_

#include <pybind11/pybind11.h>

#include "kaldi-native-fbank/python/csrc/kaldi-native-fbank.h"

namespace knf {
Expand Down
13 changes: 13 additions & 0 deletions kaldi-native-fbank/python/csrc/online-feature.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,23 @@

#include "kaldi-native-fbank/python/csrc/online-feature.h"

#include <pybind11/attr.h>
#include <pybind11/cast.h>
#include <pybind11/detail/descr.h>
#include <pybind11/numpy.h>
#include <pybind11/pytypes.h>
#include <stdint.h>
#include <string>
#include <vector>

#include "kaldi-native-fbank/csrc/online-feature.h"
#include "kaldi-native-fbank/csrc/feature-fbank.h"
#include "kaldi-native-fbank/csrc/whisper-feature.h"

namespace pybind11 {
class gil_scoped_release;
} // namespace pybind11

namespace knf {

template <typename C>
Expand Down
2 changes: 2 additions & 0 deletions kaldi-native-fbank/python/csrc/online-feature.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#ifndef KALDI_NATIVE_FBANK_PYTHON_CSRC_ONLINE_FEATURE_H_
#define KALDI_NATIVE_FBANK_PYTHON_CSRC_ONLINE_FEATURE_H_

#include <pybind11/pybind11.h>

#include "kaldi-native-fbank/python/csrc/kaldi-native-fbank.h"

namespace knf {
Expand Down
4 changes: 3 additions & 1 deletion kaldi-native-fbank/python/csrc/rfft.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@

#include "kaldi-native-fbank/python/csrc/rfft.h"

#include <string>
#include <pybind11/cast.h>
#include <pybind11/detail/descr.h>
#include <stdint.h>
#include <vector>

#include "kaldi-native-fbank/csrc/rfft.h"
Expand Down
2 changes: 2 additions & 0 deletions kaldi-native-fbank/python/csrc/rfft.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#ifndef KALDI_NATIVE_FBANK_PYTHON_CSRC_RFFT_H_
#define KALDI_NATIVE_FBANK_PYTHON_CSRC_RFFT_H_

#include <pybind11/pybind11.h>

#include "kaldi-native-fbank/python/csrc/kaldi-native-fbank.h"

namespace knf {
Expand Down
2 changes: 2 additions & 0 deletions kaldi-native-fbank/python/csrc/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#ifndef KALDI_NATIVE_FBANK_PYTHON_CSRC_UTILS_H_
#define KALDI_NATIVE_FBANK_PYTHON_CSRC_UTILS_H_

#include <pybind11/pytypes.h>

#include "kaldi-native-fbank/csrc/feature-fbank.h"
#include "kaldi-native-fbank/csrc/feature-window.h"
#include "kaldi-native-fbank/csrc/mel-computations.h"
Expand Down

0 comments on commit cfcc7de

Please sign in to comment.