Skip to content

Commit

Permalink
fixup! const std::string&
Browse files Browse the repository at this point in the history
  • Loading branch information
olilarkin committed Feb 26, 2024
1 parent 07b8f92 commit 90ea155
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion NAM/get_dsp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ std::unique_ptr<DSP> GetDSP(dspData& conf)
std::vector<int> dilations;
for (size_t i = 0; i < config["dilations"].size(); i++)
dilations.push_back(config["dilations"][i]);
const std::string& activation = config["activation"];
auto activation = config["activation"];
out = std::make_unique<convnet::ConvNet>(channels, dilations, batchnorm, activation, weights, expectedSampleRate);
}
else if (architecture == "LSTM")
Expand Down
2 changes: 1 addition & 1 deletion NAM/wavenet.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class LayerArrayParams
const int mChannels;
const int mKernelSize;
std::vector<int> mDilations;
const std::string& mActivation;
const std::string mActivation;
const bool mGated;
const bool mHeadBias;
};
Expand Down

0 comments on commit 90ea155

Please sign in to comment.