Commit 65702b8a authored by Shucai Xiao's avatar Shucai Xiao
Browse files

fix cppcheck error

parent 1a51797e
......@@ -559,7 +559,7 @@ struct cpu_softmax
std::numeric_limits<value_type>::lowest());
std::vector<value_type> batch_sum(batch_shape.elements(), value_type(0));
par_for(batch_shape.elements(), [&](auto i) {
auto idx = compute_batch_indices(i, batch_shape);
auto idx = this->compute_batch_indices(i, batch_shape);
for(size_t j = 0; j < n_dims; ++j)
{
......@@ -637,7 +637,7 @@ struct cpu_logsoftmax
std::vector<value_type> batch_sum(batch_shape.elements(), value_type(0));
par_for(batch_shape.elements(), [&](auto i) {
auto idx = compute_batch_indices(i, batch_shape);
auto idx = this->compute_batch_indices(i, batch_shape);
for(size_t j = 0; j < n_dims; ++j)
{
idx[op.axis] = j;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment