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] authored and PENGUINLIONG committed Sep 7, 2022
1 parent 0a52abe commit 213f341
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion c_api/include/taichi/cpp/taichi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@ class ArgumentEntry {
public:
ArgumentEntry() = delete;
ArgumentEntry(const ArgumentEntry &) = delete;
ArgumentEntry(ArgumentEntry && b) : arg_(b.arg_) {}
ArgumentEntry(ArgumentEntry &&b) : arg_(b.arg_) {
}
ArgumentEntry(TiArgument *arg) : arg_(arg) {
}

Expand Down
3 changes: 2 additions & 1 deletion c_api/src/taichi_vulkan_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ taichi::lang::gfx::GfxRuntime &VulkanRuntimeOwned::get_gfx_runtime() {
}

TiImage VulkanRuntime::allocate_image(const taichi::lang::ImageParams &params) {
taichi::lang::DeviceAllocation devalloc = get_gfx_runtime().create_image(params);
taichi::lang::DeviceAllocation devalloc =
get_gfx_runtime().create_image(params);
return devalloc2devimg(*this, devalloc);
}
void VulkanRuntime::free_image(TiImage image) {
Expand Down

0 comments on commit 213f341

Please sign in to comment.