Skip to content

Commit

Permalink
change NN dual_buff arg default to false, fix #68
Browse files Browse the repository at this point in the history
  • Loading branch information
Neutree committed Dec 18, 2024
1 parent a92f791 commit ccafbe2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/nn/include/maix_nn.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,10 @@ namespace maix::nn
* If model_path not set, you can load model later by load function.
* @param[in] dual_buff prepare dual input output buffer to accelarate forward, that is, when NPU is forwarding we not wait and prepare the next input buff.
* If you want to ensure every time forward output the input's result, set this arg to false please.
* Default true to ensure speed.
* Default false to ensure easy use.
* @maixpy maix.nn.NN.__init__
*/
NN(const std::string &model = "", bool dual_buff = true);
NN(const std::string &model = "", bool dual_buff = false);
~NN();

/**
Expand Down

0 comments on commit ccafbe2

Please sign in to comment.