Home
last modified time | relevance | path

Searched refs:data_layout (Results 1 – 25 of 54) sorted by relevance

123

/external/tensorflow/tensorflow/python/kernel_tests/
Dbias_op_deterministic_test.py43 data_layout): argument
45 if data_layout == 'channels_first':
47 elif data_layout == 'channels_last':
53 def _dataFormatFromDataLayout(self, data_layout=None): argument
54 if data_layout == 'channels_first':
56 elif data_layout == 'channels_last':
74 data_layout=['channels_first', 'channels_last'],
79 def testDeterministicGradients(self, data_layout, data_rank, data_type): argument
86 hash(data_layout) % 256 + hash(data_rank) % 256 +
93 data_dim, data_layout)
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/cpu/tests/
Dcpu_bytesizeof_test.cc23 llvm::DataLayout data_layout( in TEST_F() local
27 EXPECT_EQ(xla::llvm_ir::ByteSizeOf(tuple_shape, data_layout), in TEST_F()
28 data_layout.getPointerSize(0 /* default address space */)); in TEST_F()
32 llvm::DataLayout data_layout("e-m:e-i64:64-i128:128-n32:64-S128"); in TEST_F() local
35 EXPECT_EQ(xla::llvm_ir::ByteSizeOf(tuple_shape, data_layout), in TEST_F()
36 data_layout.getPointerSize(0 /* default address space */)); in TEST_F()
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/kernels/
Dconverter.cc80 def.data_layout == DataLayout::BHWC; in IsBHWCOpenCLBuffer()
85 def.data_layout == DataLayout::DHWC4; in IsOpenCLTensor()
88 def.data_layout == DataLayout::HDWC4; in IsOpenCLTensor()
91 def.data_layout == DataLayout::DHWC4; in IsOpenCLTensor()
94 def.data_layout == DataLayout::BHWC; in IsOpenCLTensor()
125 input_def.object_def.object_type, input_def.object_def.data_layout); in Init()
134 output_def.object_def.object_type, output_def.object_def.data_layout); in Init()
212 input_def.object_def.object_type, input_def.object_def.data_layout); in Init()
310 output_def.object_def.object_type, output_def.object_def.data_layout); in Init()
380 def.object_def.data_layout)) { in CalculateTextureRegion()
[all …]
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/kernels/
Dconverter.cc100 output.data_layout == DataLayout::BHWC && in IsSupported()
103 input.data_layout == DataLayout::DHWC4; in IsSupported()
188 input.data_layout == DataLayout::BHWC && in IsSupported()
191 output.data_layout == DataLayout::DHWC4; in IsSupported()
279 input.data_layout == output.data_layout; in IsSupported()
309 input.data_layout == output.data_layout && in IsSupported()
Dconverter_test.cc73 input_def.object_def.data_layout = DataLayout::DHWC4; in RunFromTensorTest()
77 output_def.object_def.data_layout = DataLayout::BHWC; in RunFromTensorTest()
130 input_def.object_def.data_layout = DataLayout::BHWC; in RunToTensorTest()
134 output_def.object_def.data_layout = DataLayout::DHWC4; in RunToTensorTest()
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/
Dgpu_api_delegate.cc62 DataLayout ToDataLayoutFromTFL(TfLiteGpuDataLayout data_layout) { in ToDataLayoutFromTFL() argument
63 switch (data_layout) { in ToDataLayoutFromTFL()
234 DataType data_type, DataLayout data_layout) { in BindGlBufferToTensor() argument
242 def.object_def.data_layout = data_layout; in BindGlBufferToTensor()
258 default_object_def.data_layout = DataLayout::BHWC; in GetObjectDef()
383 TfLiteType data_type, TfLiteGpuDataLayout data_layout) { in TfLiteGpuDelegateBindGlBufferToTensor() argument
395 auto layout = tflite::gpu::cl::ToDataLayoutFromTFL(data_layout); in TfLiteGpuDelegateBindGlBufferToTensor()
Dtensor_type_util.cc57 DataLayout data_layout) { in ToTensorStorageType() argument
62 switch (data_layout) { in ToTensorStorageType()
Dgl_interop.h148 input.data_layout == output.data_layout && in IsSupported()
Dtensor_type_util.h31 DataLayout data_layout);
Dgpu_api_delegate.h93 TfLiteType data_type, TfLiteGpuDataLayout data_layout);
/external/tensorflow/tensorflow/core/kernels/
Dpooling_ops_common.cc266 se::dnn::DataLayout data_layout = se::dnn::DataLayout::kBatchDepthYX; in Compute() local
270 se::dnn::DataLayout data_layout; in Compute() local
273 data_layout = se::dnn::DataLayout::kBatchYXDepth; in Compute()
276 data_layout = se::dnn::DataLayout::kBatchDepthYX; in Compute()
281 data_layout = se::dnn::DataLayout::kBatchYXDepth; in Compute()
367 .set_layout(data_layout); in Compute()
374 .set_layout(data_layout); in Compute()
535 se::dnn::DataLayout data_layout = se::dnn::DataLayout::kBatchDepthYX; in Compute() local
555 se::dnn::DataLayout data_layout; in Compute() local
558 data_layout = se::dnn::DataLayout::kBatchYXDepth; in Compute()
[all …]
/external/llvm-project/mlir/test/Conversion/StandardToLLVM/
Dconvert-data-layout.mlir4 // CHECK: module attributes {llvm.data_layout = ""}
5 // CHECK-32: module attributes {llvm.data_layout ="p:32:32:32"}
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_init.c295 char *data_layout; in init_gallivm_engine() local
298 data_layout = LLVMCopyStringRepOfTargetData(gallivm->target); in init_gallivm_engine()
302 debug_printf("module target data = %s\n", data_layout); in init_gallivm_engine()
306 free(data_layout); in init_gallivm_engine()
/external/tensorflow/tensorflow/lite/delegates/gpu/
Dapi.h175 DataLayout data_layout = DataLayout::UNKNOWN; member
186 return data_type == other.data_type && data_layout == other.data_layout &&
Dapi.cc65 def.data_layout != DataLayout::UNKNOWN && in IsValid()
107 switch (def.object_def.data_layout) { in NumElements()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dgpu_compiler.h46 const char* data_layout);
155 const std::string& target_triple, const std::string& data_layout,
Dgpu_compiler.cc141 const char* target_triple, const char* data_layout) in GpuCompiler() argument
144 data_layout_(data_layout), in GpuCompiler()
145 pointer_size_(llvm::DataLayout(data_layout) in GpuCompiler()
550 const std::string& target_triple, const std::string& data_layout, in CompileModuleToLlvmIrImpl() argument
562 (*llvm_module)->setDataLayout(data_layout); in CompileModuleToLlvmIrImpl()
985 const std::string& target_triple, const std::string& data_layout, in CompileModuleToLlvmIr() argument
994 hlo_module, llvm_context, target_triple, data_layout, platform_name, in CompileModuleToLlvmIr()
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/
Dapi2.cc168 external_def.data_layout == internal_def.data_layout) || in IsSameDef()
172 external_def.data_layout == DataLayout::BHWC && in IsSameDef()
173 internal_def.data_layout == DataLayout::DHWC4 && in IsSameDef()
341 inner_def.internal_def.object_def.data_layout = DataLayout::DHWC4; in MakeOuterInnerDefs()
622 external_def.object_def.data_layout = DataLayout::DHWC4; in LinkTensors()
/external/llvm-project/llvm/bindings/ocaml/executionengine/
Dllvm_executionengine.mli69 (** [data_layout ee] is the data layout of the execution engine [ee]. *)
70 val data_layout : llexecutionengine -> Llvm_target.DataLayout.t val
Dllvm_executionengine.ml43 external data_layout : llexecutionengine -> Llvm_target.DataLayout.t
/external/llvm/bindings/ocaml/executionengine/
Dllvm_executionengine.mli70 (** [data_layout ee] is the data layout of the execution engine [ee]. *)
71 val data_layout : llexecutionengine -> Llvm_target.DataLayout.t val
Dllvm_executionengine.ml44 external data_layout : llexecutionengine -> Llvm_target.DataLayout.t
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dsimple_orc_jit.h76 const llvm::DataLayout& data_layout() const { return data_layout_; } in data_layout() function
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/testing/
Dinternal_api_samples.cc176 obj_def.data_layout = DataLayout::BHWC; in RunModelSampleWithInternalAPI()
305 obj_def.data_layout = DataLayout::BHWC; in RunModelSampleWithInternalAPISerializedKernels()
381 obj_def.data_layout = DataLayout::BHWC; in RunModelSampleWithInternalAPISerialized()
/external/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
DIRDynamicChecks.cpp286 llvm::DataLayout data_layout(&m_module); in GetIntptrTy() local
289 data_layout.getPointerSizeInBits()); in GetIntptrTy()

123