mirror of
https://github.com/csukuangfj/kaldifeat.git
synced 2025-08-24 09:16:12 +00:00
typo fixes
This commit is contained in:
parent
bd09a9eca8
commit
bf83497475
@ -130,7 +130,7 @@ WhisperFbankOptions WhisperFbankOptionsFromDict(py::dict dict) {
|
|||||||
opts.frame_opts = FrameExtractionOptionsFromDict(dict["frame_opts"]);
|
opts.frame_opts = FrameExtractionOptionsFromDict(dict["frame_opts"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
AS_DICT(num_mels);
|
FROM_DICT(int_, num_mels);
|
||||||
|
|
||||||
if (dict.contains("device")) {
|
if (dict.contains("device")) {
|
||||||
opts.device = torch::Device(std::string(py::str(dict["device"])));
|
opts.device = torch::Device(std::string(py::str(dict["device"])));
|
||||||
@ -144,6 +144,8 @@ py::dict AsDict(const WhisperFbankOptions &opts) {
|
|||||||
|
|
||||||
dict["frame_opts"] = AsDict(opts.frame_opts);
|
dict["frame_opts"] = AsDict(opts.frame_opts);
|
||||||
|
|
||||||
|
AS_DICT(num_mels);
|
||||||
|
|
||||||
auto torch_device = py::module_::import("torch").attr("device");
|
auto torch_device = py::module_::import("torch").attr("device");
|
||||||
dict["device"] = torch_device(opts.device.str());
|
dict["device"] = torch_device(opts.device.str());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user