Skip to content

Commit fdccc01

Browse files
author
ssjia
committed
Update on "[ET-VK][ez] Allow high dimensional tensors (for buffer storage)"
Differential Revision: [D80800083](https://our.internmc.facebook.com/intern/diff/D80800083) [ghstack-poisoned]
2 parents f3c4f61 + 092ed74 commit fdccc01

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

backends/vulkan/runtime/api/containers/Tensor.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,8 @@ std::vector<T> flip_and_unsqueeze(
705705
const size_t numel,
706706
const int32_t fixed_ndim = -1) {
707707
const size_t ndim = tensor_metadata.size();
708-
size_t ndim_up4 = utils::align_up_4(tensor_metadata.size());
708+
size_t ndim_up4 =
709+
std::max(utils::align_up_4(tensor_metadata.size()), size_t(4));
709710

710711
if (fixed_ndim > 0) {
711712
VK_CHECK_COND(fixed_ndim >= ndim);

backends/vulkan/runtime/graph/ops/impl/Staging.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
#include <executorch/backends/vulkan/runtime/graph/ops/impl/utils/DimUtils.h>
1919
#include <executorch/backends/vulkan/runtime/graph/ops/impl/utils/TensorUtils.h>
2020

21-
#include <iostream>
22-
2321
namespace vkcompute {
2422

2523
void add_staging_to_tensor_node(

0 commit comments

Comments
 (0)