Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 5, 2022
1 parent 22f5b97 commit a7a7419
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions c_api/src/taichi_core_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,13 +305,14 @@ void ti_launch_compute_graph(TiRuntime runtime,
return;
}
const TiNdArray &ndarray = arg.argument.value.ndarray;

std::vector<int> shape(ndarray.shape.dims,
ndarray.shape.dims + ndarray.shape.dim_count);

std::vector<int> elem_shape(ndarray.elem_shape.dims,
ndarray.elem_shape.dims + ndarray.elem_shape.dim_count);

std::vector<int> elem_shape(
ndarray.elem_shape.dims,
ndarray.elem_shape.dims + ndarray.elem_shape.dim_count);

ndarrays.emplace_back(taichi::lang::Ndarray(
devalloc, taichi::lang::PrimitiveType::f32, shape, elem_shape));
arg_map.emplace(std::make_pair(
Expand Down

0 comments on commit a7a7419

Please sign in to comment.