Home
last modified time | relevance | path

Searched refs:CpuMemory (Results 1 – 7 of 7) sorted by relevance

/external/tensorflow/tensorflow/lite/delegates/gpu/
Dapi.h147 struct CpuMemory { struct
148 CpuMemory() = default;
149 CpuMemory(void* new_data, size_t new_size_bytes) in CpuMemory() function
157 inline CpuMemory MakeCpuMemory(absl::Span<T> t) { in MakeCpuMemory() argument
158 CpuMemory m; in MakeCpuMemory()
165 inline CpuMemory MakeReadableCpuMemory(absl::Span<const T> t) { in MakeReadableCpuMemory()
166 CpuMemory m; in MakeReadableCpuMemory()
232 absl::variant<absl::monostate, OpenGlBuffer, OpenGlTexture, CpuMemory,
Dapi.cc40 ObjectType operator()(CpuMemory) const { return ObjectType::CPU_MEMORY; } in operator ()()
53 bool operator()(CpuMemory obj) const { in operator ()()
83 return absl::holds_alternative<CpuMemory>(obj); in IsObjectPresent()
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/testing/
Dinternal_api_samples.cc203 i, CpuMemory{tensor_ptr->data.data, tensor_ptr->bytes})); in RunModelSampleWithInternalAPI()
211 i, CpuMemory{output_tensors[i].data(), tensor_ptr->bytes})); in RunModelSampleWithInternalAPI()
327 i, CpuMemory{tensor_ptr->data.data, tensor_ptr->bytes})); in RunModelSampleWithInternalAPISerializedKernels()
335 i, CpuMemory{output_tensors[i].data(), tensor_ptr->bytes})); in RunModelSampleWithInternalAPISerializedKernels()
403 i, CpuMemory{tensor_ptr->data.data, tensor_ptr->bytes})); in RunModelSampleWithInternalAPISerialized()
411 i, CpuMemory{output_tensors[i].data(), tensor_ptr->bytes})); in RunModelSampleWithInternalAPISerialized()
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/kernels/
Dconverter.cc318 auto cpu_input = absl::get_if<CpuMemory>(&input_obj); in Convert()
319 auto cpu_output = absl::get_if<CpuMemory>(&output_obj); in Convert()
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/kernels/
Dconverter.cc491 auto cpu_input = absl::get_if<CpuMemory>(&input_obj); in Convert()
492 auto cpu_output = absl::get_if<CpuMemory>(&output_obj); in Convert()
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/
Dapi2.cc249 external_obj_ = CpuMemory{cpu_memory_.data(), cpu_memory_.size()}; in MaybeAllocateExternalObject()
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/
Dapi.cc187 external_obj_ = CpuMemory{cpu_memory_.data(), cpu_memory_.size()}; in MaybeAllocateExternalObject()