chore: import upstream snapshot with attribution
cffconvert / validate (push) Has been skipped
License Check / license-check (push) Failing after 2s

This commit is contained in:
wehub-resource-sync
2026-07-13 12:14:16 +08:00
commit 8a852e4b4e
36502 changed files with 9277225 additions and 0 deletions
@@ -0,0 +1,26 @@
load("@rules_cc//cc:cc_library.bzl", "cc_library")
package(
# copybara:uncomment default_applicable_licenses = ["//tensorflow:LICENSE"],
default_visibility = ["//visibility:public"],
licenses = ["notice"],
)
cc_library(
name = "qcom_wrapper",
hdrs = ["qcom_wrapper.h"],
)
cc_library(
name = "recordable_queue",
srcs = ["recordable_queue.cc"],
deps = [
"//tensorflow/lite/delegates/gpu/cl:recordable_queue",
],
)
cc_library(
name = "util",
srcs = ["util.cc"],
deps = ["//tensorflow/lite/delegates/gpu/cl:opencl_wrapper"],
)
@@ -0,0 +1,31 @@
/* Copyright 2021 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
#ifndef TENSORFLOW_LITE_DELEGATES_GPU_CL_DEFAULT_QCOM_WRAPPER_H_
#define TENSORFLOW_LITE_DELEGATES_GPU_CL_DEFAULT_QCOM_WRAPPER_H_
namespace tflite {
namespace gpu {
namespace cl {
#define LoadQcomExtensionFunctions()
#define DEFINE_QCOM_FUNCTION_PTRS
} // namespace cl
} // namespace gpu
} // namespace tflite
#endif // TENSORFLOW_LITE_DELEGATES_GPU_CL_DEFAULT_QCOM_WRAPPER_H_
@@ -0,0 +1,32 @@
/* Copyright 2021 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
#include "tensorflow/lite/delegates/gpu/cl/recordable_queue.h"
#include <memory>
namespace tflite {
namespace gpu {
namespace cl {
std::unique_ptr<RecordableQueue> CreateRecordableQueue(
const std::vector<ClOperation*>& ops, const CLDevice& device,
const CLContext& context) {
return std::make_unique<RecordableQueue>(RecordableQueue());
}
} // namespace cl
} // namespace gpu
} // namespace tflite
@@ -0,0 +1,42 @@
/* Copyright 2022 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
#include <string>
#include <utility>
#include <vector>
#include "tensorflow/lite/delegates/gpu/cl/opencl_wrapper.h"
namespace tflite {
namespace gpu {
namespace cl {
absl::Status CreateQcomConvolutionFilter(cl_context context, int kernel_x,
int kernel_y, cl_mem* filter,
const void* data) {
return absl::UnavailableError("CreateQcomConvolutionFilter not available.");
}
std::vector<std::string> GetUnsupportedExtensions() {
return {"cl_qcom_accelerated_image_ops", "cl_qcom_recordable_queues"};
}
std::vector<std::pair<std::string, std::string>> GetClSpecificDefines() {
return {};
}
} // namespace cl
} // namespace gpu
} // namespace tflite