This repository has been archived on 2025-08-26. You can view files and clone it, but cannot push or open issues or pull requests.
Files
enginex-mr_series-sherpa-onnx/sherpa-onnx/csrc/online-transducer-model-config.h

33 lines
880 B
C
Raw Normal View History

2023-02-19 19:36:03 +08:00
// sherpa-onnx/csrc/online-transducer-model-config.h
2023-02-18 21:35:15 +08:00
//
// Copyright (c) 2023 Xiaomi Corporation
#ifndef SHERPA_ONNX_CSRC_ONLINE_TRANSDUCER_MODEL_CONFIG_H_
#define SHERPA_ONNX_CSRC_ONLINE_TRANSDUCER_MODEL_CONFIG_H_
#include <string>
#include "sherpa-onnx/csrc/parse-options.h"
2023-02-18 21:35:15 +08:00
namespace sherpa_onnx {
struct OnlineTransducerModelConfig {
std::string encoder;
std::string decoder;
std::string joiner;
2023-02-19 19:36:03 +08:00
OnlineTransducerModelConfig() = default;
OnlineTransducerModelConfig(const std::string &encoder,
const std::string &decoder,
const std::string &joiner)
: encoder(encoder), decoder(decoder), joiner(joiner) {}
2023-02-19 19:36:03 +08:00
void Register(ParseOptions *po);
bool Validate() const;
2023-02-18 21:35:15 +08:00
std::string ToString() const;
};
} // namespace sherpa_onnx
#endif // SHERPA_ONNX_CSRC_ONLINE_TRANSDUCER_MODEL_CONFIG_H_