File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
packages/react-native-executorch/common/rnexecutorch/models/text_to_speech/kokoro Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ namespace rnexecutorch::models::text_to_speech::kokoro {
1414
1515class Decoder : public BaseModel {
1616public:
17- Decoder (const std::string &modelSource,
18- std::shared_ptr<react::CallInvoker> callInvoker);
17+ explicit Decoder (const std::string &modelSource,
18+ std::shared_ptr<react::CallInvoker> callInvoker);
1919
2020 Result<std::vector<EValue>>
2121 generate (const std::string &method, const Configuration &inputConfig,
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ using executorch::aten::Tensor;
1717
1818class DurationPredictor : public BaseModel {
1919public:
20- DurationPredictor (const std::string &modelSource,
21- std::shared_ptr<react::CallInvoker> callInvoker);
20+ explicit DurationPredictor (const std::string &modelSource,
21+ std::shared_ptr<react::CallInvoker> callInvoker);
2222
2323 // Returns a tuple (d, indices, effectiveDuration)
2424 std::tuple<Tensor, std::vector<int64_t >, int32_t >
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ namespace rnexecutorch::models::text_to_speech::kokoro {
1414
1515class Encoder : public BaseModel {
1616public:
17- Encoder (const std::string &modelSource,
18- std::shared_ptr<react::CallInvoker> callInvoker);
17+ explicit Encoder (const std::string &modelSource,
18+ std::shared_ptr<react::CallInvoker> callInvoker);
1919
2020 Result<std::vector<EValue>> generate (const std::string &method,
2121 const Configuration &inputConfig,
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ namespace rnexecutorch::models::text_to_speech::kokoro {
1414
1515class F0NPredictor : public BaseModel {
1616public:
17- F0NPredictor (const std::string &modelSource,
18- std::shared_ptr<react::CallInvoker> callInvoker);
17+ explicit F0NPredictor (const std::string &modelSource,
18+ std::shared_ptr<react::CallInvoker> callInvoker);
1919
2020 Result<std::vector<EValue>> generate (const std::string &method,
2121 const Configuration &inputConfig,
You can’t perform that action at this time.
0 commit comments