Commit 84f495a2 authored by Shucai Xiao's avatar Shucai Xiao
Browse files

clang format

parent 201c8182
...@@ -622,7 +622,7 @@ struct cpu_logsoftmax ...@@ -622,7 +622,7 @@ struct cpu_logsoftmax
template <typename T> template <typename T>
std::size_t compute_batch_index(const T& idx, shape& batch_shape, int axis) const std::size_t compute_batch_index(const T& idx, shape& batch_shape, int axis) const
{ {
if (axis == 0) if(axis == 0)
{ {
return 0; return 0;
} }
...@@ -638,7 +638,7 @@ struct cpu_logsoftmax ...@@ -638,7 +638,7 @@ struct cpu_logsoftmax
argument result{output_shape}; argument result{output_shape};
auto lens = output_shape.lens(); auto lens = output_shape.lens();
std::vector<std::size_t> batch_lens{}; std::vector<std::size_t> batch_lens{};
if (op.axis == 0) if(op.axis == 0)
{ {
batch_lens.push_back(1); batch_lens.push_back(1);
} }
......
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