Skip to content

Commit d93176a

Browse files
jorgep31415facebook-github-bot
authored andcommitted
Create containers/ folder in api/ (#4181)
Summary: Pull Request resolved: #4181 ``` find . -type f -exec sed -i 's/api\/Tensor/api\/containers\/Tensor/g' {} + find . -type f -exec sed -i 's/api\/ParamsBuffer/api\/containers\/ParamsBuffer/g' {} + find . -type f -exec sed -i 's/api\/StorageBuffer/api\/containers\/StorageBuffer/g' {} + ``` ghstack-source-id: 233085712 exported-using-ghexport bypass-github-export-checks bypass-github-pytorch-ci-checks bypass-github-executorch-ci-checks Reviewed By: SS-JIA Differential Revision: D59527912 fbshipit-source-id: 09a152d42619ac649848c923c3ae7c6acf894489
1 parent fdc6a67 commit d93176a

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

backends/vulkan/runtime/api/api.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
#pragma once
1010

1111
#include <executorch/backends/vulkan/runtime/api/Context.h>
12-
#include <executorch/backends/vulkan/runtime/api/ParamsBuffer.h>
1312
#include <executorch/backends/vulkan/runtime/api/ShaderRegistry.h>
14-
#include <executorch/backends/vulkan/runtime/api/StorageBuffer.h>
15-
#include <executorch/backends/vulkan/runtime/api/Tensor.h>
13+
14+
#include <executorch/backends/vulkan/runtime/api/containers/ParamsBuffer.h>
15+
#include <executorch/backends/vulkan/runtime/api/containers/StorageBuffer.h>
16+
#include <executorch/backends/vulkan/runtime/api/containers/Tensor.h>
1617

1718
#include <executorch/backends/vulkan/runtime/utils/VecUtils.h>
1819

backends/vulkan/runtime/api/ParamsBuffer.cpp renamed to backends/vulkan/runtime/api/containers/ParamsBuffer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9-
#include <executorch/backends/vulkan/runtime/api/ParamsBuffer.h>
9+
#include <executorch/backends/vulkan/runtime/api/containers/ParamsBuffer.h>
1010

1111
#include <cstring>
1212

backends/vulkan/runtime/api/Tensor.cpp renamed to backends/vulkan/runtime/api/containers/Tensor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9-
#include <executorch/backends/vulkan/runtime/api/Tensor.h>
9+
#include <executorch/backends/vulkan/runtime/api/containers/Tensor.h>
1010

1111
#include <executorch/backends/vulkan/runtime/vk_api/VkUtils.h>
1212

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
// @lint-ignore-every CLANGTIDY facebook-hte-BadMemberName
1212

1313
#include <executorch/backends/vulkan/runtime/api/Context.h>
14-
#include <executorch/backends/vulkan/runtime/api/ParamsBuffer.h>
14+
15+
#include <executorch/backends/vulkan/runtime/api/containers/ParamsBuffer.h>
1516

1617
#include <executorch/backends/vulkan/runtime/utils/StorageUtils.h>
1718

backends/vulkan/runtime/graph/containers/SharedObject.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010

1111
// @lint-ignore-every CLANGTIDY facebook-hte-BadMemberName
1212

13-
#include <executorch/backends/vulkan/runtime/api/Context.h>
14-
#include <executorch/backends/vulkan/runtime/api/Tensor.h>
13+
#include <executorch/backends/vulkan/runtime/api/api.h>
1514

1615
#include <executorch/backends/vulkan/runtime/vk_api/Types.h>
1716

backends/vulkan/runtime/graph/containers/Value.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010

1111
// @lint-ignore-every CLANGTIDY facebook-hte-BadMemberName
1212

13-
#include <executorch/backends/vulkan/runtime/api/Context.h>
14-
#include <executorch/backends/vulkan/runtime/api/Tensor.h>
13+
#include <executorch/backends/vulkan/runtime/api/api.h>
1514

1615
#include <executorch/backends/vulkan/runtime/graph/containers/Constant.h>
1716
#include <executorch/backends/vulkan/runtime/graph/containers/Types.h>

backends/vulkan/runtime/vk_api/Fence.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace vkapi {
2121

2222
class VulkanFence final {
2323
public:
24-
// TODO: This is required for the lazy allocation pattern in api/Tensor.
24+
// TODO: This is required for the lazy allocation pattern in api::vTensor.
2525
// It will be disabled pending future refactors.
2626
explicit VulkanFence();
2727

0 commit comments

Comments
 (0)