Skip to content

Commit

Permalink
Fix the casting from default double to any possible type (#3467)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrit committed Apr 12, 2023
1 parent d58d9c7 commit d8b26b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mlpack/methods/ann/init_rules/network_init.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class NetworkInitialization
// Initialize the layer with the specified parameter/weight
// initialization rule.
const size_t weight = network[i]->WeightSize();
arma::Mat<eT> tmp = arma::mat(parameters.memptr() + offset,
arma::Mat<eT> tmp = arma::Mat<eT>(parameters.memptr() + offset,
weight, 1, false, false);
initializeRule.Initialize(tmp, tmp.n_elem, 1);

Expand Down

0 comments on commit d8b26b9

Please sign in to comment.