Skip to content

Commit 092ed74

Browse files
author
ssjia
committed
Update base for 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]
1 parent 36c29d8 commit 092ed74

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
@@ -704,7 +704,8 @@ std::vector<T> flip_and_unsqueeze(
704704
const size_t numel,
705705
const int32_t fixed_ndim = -1) {
706706
const size_t ndim = tensor_metadata.size();
707-
size_t ndim_up4 = utils::align_up_4(tensor_metadata.size());
707+
size_t ndim_up4 =
708+
std::max(utils::align_up_4(tensor_metadata.size()), size_t(4));
708709

709710
if (fixed_ndim > 0) {
710711
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)