提交 b7926204 编写于 作者: P pangyoki

let array len be const

上级 64f56bec
......@@ -31,7 +31,7 @@ void MultinomialFunctor(T* out_data, const T* in_data,
const int64_t num_samples, const bool replacement,
const int64_t num_categories,
const int64_t num_distributions) {
int64_t C = num_categories + 1;
const int64_t C = num_categories;
T cumulative_probs[C];
std::uniform_real_distribution<T> dist(0, 1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册