mirror of
https://github.com/csukuangfj/kaldifeat.git
synced 2025-08-09 18:12:17 +00:00
Remove Python dependencies.
This commit is contained in:
parent
b5c19185ea
commit
22f2fb7371
@ -8,8 +8,6 @@
|
||||
|
||||
#include <cmath>
|
||||
|
||||
#include "torch/torch.h"
|
||||
|
||||
namespace kaldifeat {
|
||||
|
||||
std::ostream &operator<<(std::ostream &os, const FbankOptions &opts) {
|
||||
|
@ -13,7 +13,6 @@
|
||||
#include "kaldifeat/csrc/feature-common.h"
|
||||
#include "kaldifeat/csrc/feature-window.h"
|
||||
#include "kaldifeat/csrc/mel-computations.h"
|
||||
#include "torch/torch.h"
|
||||
|
||||
namespace kaldifeat {
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
#ifndef KALDIFEAT_CSRC_FEATURE_FUNCTIONS_H_
|
||||
#define KALDIFEAT_CSRC_FEATURE_FUNCTIONS_H_
|
||||
|
||||
#include "torch/torch.h"
|
||||
#include "torch/script.h"
|
||||
|
||||
namespace kaldifeat {
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
#include "kaldifeat/csrc/feature-common.h"
|
||||
#include "kaldifeat/csrc/feature-window.h"
|
||||
#include "kaldifeat/csrc/mel-computations.h"
|
||||
#include "torch/torch.h"
|
||||
#include "torch/script.h"
|
||||
|
||||
namespace kaldifeat {
|
||||
|
||||
|
@ -7,7 +7,6 @@
|
||||
#include "kaldifeat/csrc/feature-plp.h"
|
||||
|
||||
#include "kaldifeat/csrc/feature-functions.h"
|
||||
#include "torch/torch.h"
|
||||
|
||||
namespace kaldifeat {
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
#include "kaldifeat/csrc/feature-common.h"
|
||||
#include "kaldifeat/csrc/feature-window.h"
|
||||
#include "kaldifeat/csrc/mel-computations.h"
|
||||
#include "torch/torch.h"
|
||||
#include "torch/script.h"
|
||||
|
||||
namespace kaldifeat {
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
#include "kaldifeat/csrc/feature-common.h"
|
||||
#include "kaldifeat/csrc/feature-window.h"
|
||||
#include "torch/torch.h"
|
||||
#include "torch/script.h"
|
||||
|
||||
namespace kaldifeat {
|
||||
|
||||
|
@ -9,8 +9,6 @@
|
||||
#include <cmath>
|
||||
#include <vector>
|
||||
|
||||
#include "torch/torch.h"
|
||||
|
||||
#ifndef M_2PI
|
||||
#define M_2PI 6.283185307179586476925286766559005
|
||||
#endif
|
||||
|
@ -7,7 +7,8 @@
|
||||
#include <string>
|
||||
|
||||
#include "kaldifeat/csrc/log.h"
|
||||
#include "torch/torch.h"
|
||||
#include "torch/all.h"
|
||||
#include "torch/script.h"
|
||||
|
||||
#ifndef KALDIFEAT_CSRC_FEATURE_WINDOW_H_
|
||||
#define KALDIFEAT_CSRC_FEATURE_WINDOW_H_
|
||||
|
@ -7,7 +7,7 @@
|
||||
#ifndef KALDIFEAT_CSRC_MATRIX_FUNCTIONS_H_
|
||||
#define KALDIFEAT_CSRC_MATRIX_FUNCTIONS_H_
|
||||
|
||||
#include "torch/torch.h"
|
||||
#include "torch/script.h"
|
||||
|
||||
namespace kaldifeat {
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "torch/torch.h"
|
||||
#include "torch/script.h"
|
||||
|
||||
namespace kaldifeat {
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
//
|
||||
// Copyright (c) 2021 Xiaomi Corporation (authors: Fangjun Kuang)
|
||||
|
||||
#include "torch/torch.h"
|
||||
#include "torch/script.h"
|
||||
|
||||
static void TestPreemph() {
|
||||
torch::Tensor a = torch::arange(0, 12).reshape({3, 4}).to(torch::kFloat);
|
||||
|
Loading…
x
Reference in New Issue
Block a user