Skip to content

Commit 90ea155

Browse files
committed
fixup! const std::string&
1 parent 07b8f92 commit 90ea155

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

NAM/get_dsp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ std::unique_ptr<DSP> GetDSP(dspData& conf)
184184
std::vector<int> dilations;
185185
for (size_t i = 0; i < config["dilations"].size(); i++)
186186
dilations.push_back(config["dilations"][i]);
187-
const std::string& activation = config["activation"];
187+
auto activation = config["activation"];
188188
out = std::make_unique<convnet::ConvNet>(channels, dilations, batchnorm, activation, weights, expectedSampleRate);
189189
}
190190
else if (architecture == "LSTM")

NAM/wavenet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class LayerArrayParams
7979
const int mChannels;
8080
const int mKernelSize;
8181
std::vector<int> mDilations;
82-
const std::string& mActivation;
82+
const std::string mActivation;
8383
const bool mGated;
8484
const bool mHeadBias;
8585
};

0 commit comments

Comments
 (0)