Remove Python dependencies.

This commit is contained in:
Fangjun Kuang 2021-10-11 14:21:23 +08:00
parent b5c19185ea
commit 22f2fb7371
12 changed files with 9 additions and 14 deletions

View File

@ -8,8 +8,6 @@
#include <cmath>
#include "torch/torch.h"
namespace kaldifeat {
std::ostream &operator<<(std::ostream &os, const FbankOptions &opts) {

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -7,7 +7,6 @@
#include "kaldifeat/csrc/feature-plp.h"
#include "kaldifeat/csrc/feature-functions.h"
#include "torch/torch.h"
namespace kaldifeat {

View File

@ -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 {

View File

@ -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 {

View File

@ -9,8 +9,6 @@
#include <cmath>
#include <vector>
#include "torch/torch.h"
#ifndef M_2PI
#define M_2PI 6.283185307179586476925286766559005
#endif

View File

@ -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_

View File

@ -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 {

View File

@ -20,7 +20,7 @@
#include <string>
#include "torch/torch.h"
#include "torch/script.h"
namespace kaldifeat {

View File

@ -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);