Home
last modified time | relevance | path

Searched refs:tensor_ref (Results 1 – 16 of 16) sorted by relevance

/external/tensorflow/tensorflow/lite/delegates/gpu/common/
Dmodel_builder_test.cc38 TensorRef<BHWC> tensor_ref; in TEST() local
40 ConvertTfLiteTensorToTensorRef(tflite_tensor, &tensor_ref); in TEST()
43 EXPECT_EQ(tensor_ref.type, DataType::FLOAT32); in TEST()
44 EXPECT_EQ(tensor_ref.shape, BHWC(4, 1, 1, 1)); in TEST()
54 TensorRef<BHWC> tensor_ref; in TEST() local
56 ConvertTfLiteTensorToTensorRef(tflite_tensor, &tensor_ref); in TEST()
59 EXPECT_EQ(tensor_ref.type, DataType::INT32); in TEST()
60 EXPECT_EQ(tensor_ref.shape, BHWC(4, 1, 1, 5)); in TEST()
71 TensorRef<BHWC> tensor_ref; in TEST() local
73 ConvertTfLiteTensorToTensorRef(tflite_tensor, &tensor_ref); in TEST()
[all …]
Dmodel_builder.h47 TensorRef<BHWC>* tensor_ref);
Dmodel_builder.cc2616 TensorRef<BHWC>* tensor_ref) { in ConvertTfLiteTensorToTensorRef() argument
2617 tensor_ref->type = ToDataType(tflite_tensor.type); in ConvertTfLiteTensorToTensorRef()
2618 return ExtractTensorShape(tflite_tensor, &tensor_ref->shape); in ConvertTfLiteTensorToTensorRef()
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/kernels/
Drelu_test.cc37 TensorRef<BHWC> tensor_ref; in GetTensorRef() local
38 tensor_ref.type = DataType::FLOAT32; in GetTensorRef()
39 tensor_ref.ref = ref; in GetTensorRef()
40 tensor_ref.shape = BHWC(1, 2, 2, 1); in GetTensorRef()
41 return tensor_ref; in GetTensorRef()
Delementwise_test.cc32 TensorRef<BHWC> tensor_ref; in GetTensorRef() local
33 tensor_ref.type = DataType::FLOAT32; in GetTensorRef()
34 tensor_ref.ref = ref; in GetTensorRef()
35 tensor_ref.shape = shape; in GetTensorRef()
36 return tensor_ref; in GetTensorRef()
/external/tensorflow/tensorflow/core/framework/
Dunique_tensor_references.cc40 const TensorReference tensor_ref(tensor); in Add() local
41 if (!referenced_tensors_set_->insert(tensor_ref).second) { in Add()
43 tensor_ref.Unref(); in Add()
Dop_kernel.cc879 TensorReference tensor_ref(*t); in allocate_persistent() local
880 tensor_ref.FillDescription(&alloc_desc); in allocate_persistent()
881 tensor_ref.Unref(); in allocate_persistent()
/external/tensorflow/tensorflow/lite/delegates/gpu/metal/kernels/
Drelu_test.mm48 TensorRef<BHWC> tensor_ref;
49 tensor_ref.type = DataType::FLOAT32;
50 tensor_ref.ref = ref;
51 tensor_ref.shape = BHWC(1, 2, 2, 1);
52 return tensor_ref;
Delementwise_test.mm47 TensorRef<BHWC> tensor_ref;
48 tensor_ref.type = DataType::FLOAT32;
49 tensor_ref.ref = ref;
50 tensor_ref.shape = shape;
51 return tensor_ref;
/external/tensorflow/tensorflow/core/kernels/
Dgpu_device_array.h81 TensorReference tensor_ref(out_of_line_values_on_host_); in Finalize()
91 stream, [tensor_ref]() { tensor_ref.Unref(); }); in Finalize()
Drocm_solvers.cc160 for (auto tensor_ref : scratch_tensor_refs_) { in ~ROCmSolver() local
161 tensor_ref.Unref(); in ~ROCmSolver()
Dcuda_solvers.cc173 for (auto tensor_ref : scratch_tensor_refs_) { in ~CudaSolver() local
174 tensor_ref.Unref(); in ~CudaSolver()
/external/tensorflow/tensorflow/core/common_runtime/eager/
Dexecute_node.cc84 for (const auto& tensor_ref : protected_tensors_) { in ~ExecuteNodeArgs() local
85 tensor_ref.Unref(); in ~ExecuteNodeArgs()
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/
Dobject_manager.cc35 Status CreatePHWC4BufferFromTensorRef(const TensorRef<BHWC>& tensor_ref, in CreatePHWC4BufferFromTensorRef() argument
38 GetElementsSizeForPHWC4(tensor_ref.shape), gl_buffer); in CreatePHWC4BufferFromTensorRef()
Dobject_manager.h75 Status CreatePHWC4BufferFromTensorRef(const TensorRef<BHWC>& tensor_ref,
/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dgpu_util.cc164 TensorReference tensor_ref(tensor); in SetProtoFromGPU() local
167 total_bytes, alloc, tensor_ref]() { in SetProtoFromGPU()
171 tensor_ref.Unref(); in SetProtoFromGPU()