Skip to content

Commit 9eb0629

Browse files
committed
Merge branch '@is/text-to-speech' of https://github.com/software-mansion/react-native-executorch into @is/text-to-speech
2 parents 8a1db2a + 9f53a12 commit 9eb0629

File tree

6 files changed

+8
-10
lines changed

6 files changed

+8
-10
lines changed

packages/react-native-executorch/common/rnexecutorch/RnExecutorchInstaller.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#include <ReactCommon/CallInvoker.h>
77
#include <jsi/jsi.h>
88

9-
#include <rnexecutorch/Log.h>
109
#include <rnexecutorch/host_objects/JsiConversions.h>
1110
#include <rnexecutorch/host_objects/ModelHostObject.h>
1211
#include <rnexecutorch/metaprogramming/ConstructorHelpers.h>

packages/react-native-executorch/common/rnexecutorch/models/BaseModel.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
#include <executorch/extension/tensor/tensor.h>
44
#include <filesystem>
5-
#include <iostream>
65
#include <stdexcept>
76

87
namespace rnexecutorch::models {

packages/react-native-executorch/common/rnexecutorch/models/text_to_speech/kokoro/Decoder.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ namespace rnexecutorch::models::text_to_speech::kokoro {
1414

1515
class Decoder : public BaseModel {
1616
public:
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,

packages/react-native-executorch/common/rnexecutorch/models/text_to_speech/kokoro/DurationPredictor.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ using executorch::aten::Tensor;
1717

1818
class DurationPredictor : public BaseModel {
1919
public:
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>

packages/react-native-executorch/common/rnexecutorch/models/text_to_speech/kokoro/Encoder.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ namespace rnexecutorch::models::text_to_speech::kokoro {
1414

1515
class Encoder : public BaseModel {
1616
public:
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,

packages/react-native-executorch/common/rnexecutorch/models/text_to_speech/kokoro/F0NPredictor.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ namespace rnexecutorch::models::text_to_speech::kokoro {
1414

1515
class F0NPredictor : public BaseModel {
1616
public:
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,

0 commit comments

Comments
 (0)