Home
last modified time | relevance | path

Searched refs:data_type (Results 1 – 25 of 328) sorted by relevance

12345678910>>...14

/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DProgramStateTrait.h60 typedef llvm::ImmutableMap<Key,Data,Info> data_type;
61 typedef typename data_type::Factory& context_type;
66 static inline data_type MakeData(void *const* p) {
67 return p ? data_type((typename data_type::TreeTy*) *p)
68 : data_type(nullptr);
70 static inline void *MakeVoidPtr(data_type B) {
73 static lookup_type Lookup(data_type B, key_type K) {
76 static data_type Set(data_type B, key_type K, value_type E,context_type F){
80 static data_type Remove(data_type B, key_type K, context_type F) {
85 return *((typename data_type::Factory*) p);
[all …]
/external/tensorflow/tensorflow/lite/toco/graph_transformations/
Dpropagate_array_data_types.cc28 ArrayDataType data_type) { in SetDataTypeForAllOutputs() argument
30 model->GetArray(output).data_type = data_type; in SetDataTypeForAllOutputs()
45 model->GetArray(input).data_type == ArrayDataType::kNone) { in Run()
53 old_output_data_types[output] = model->GetArray(output).data_type; in Run()
85 const ArrayDataType data_type = model->GetArray(op->inputs[1]).data_type; in Run() local
86 SetDataTypeForAllOutputs(model, op, data_type); in Run()
92 const ArrayDataType data_type = model->GetArray(op->inputs[0]).data_type; in Run() local
93 SetDataTypeForAllOutputs(model, op, data_type); in Run()
99 const ArrayDataType data_type = model->GetArray(op->inputs[2]).data_type; in Run() local
100 SetDataTypeForAllOutputs(model, op, data_type); in Run()
[all …]
Dresolve_constant_range.cc79 if (output_array.data_type == ArrayDataType::kNone) { in Run()
91 CHECK(start_array.data_type == ArrayDataType::kInt32 || in Run()
92 start_array.data_type == ArrayDataType::kFloat) in Run()
94 CHECK(limit_array.data_type == start_array.data_type) in Run()
96 CHECK(delta_array.data_type == start_array.data_type) in Run()
99 if (start_array.data_type == ArrayDataType::kInt32) { in Run()
Ddequantize.cc34 array->data_type = ArrayDataType::kFloat; in DequantizeBuffer()
88 if (array->data_type == ArrayDataType::kUint8) { in DequantizeArray()
90 } else if (array->data_type == ArrayDataType::kInt32) { in DequantizeArray()
95 CHECK(array->data_type == ArrayDataType::kFloat); in DequantizeArray()
102 array->data_type = ArrayDataType::kFloat; in DequantizeArray()
157 new_array.data_type = ArrayDataType::kFloat; in DequantizeArray()
197 if (input_array.data_type == ArrayDataType::kFloat) { in Run()
203 input_array.data_type = ArrayDataType::kFloat; in Run()
206 output_array.data_type = ArrayDataType::kFloat; in Run()
/external/tensorflow/tensorflow/core/kernels/
Dcolorspace_op_test.cc34 void MakeOp(DataType data_type) { in MakeOp() argument
36 .Input(FakeInput(data_type)) in MakeOp()
41 void CheckBlack(DataType data_type) { in CheckBlack() argument
46 Tensor expected(allocator(), data_type, TensorShape({3})); in CheckBlack()
51 void CheckGray(DataType data_type) { in CheckGray() argument
56 Tensor expected(allocator(), data_type, TensorShape({3})); in CheckGray()
61 void CheckWhite(DataType data_type) { in CheckWhite() argument
66 Tensor expected(allocator(), data_type, TensorShape({3})); in CheckWhite()
71 void CheckRedMax(DataType data_type) { in CheckRedMax() argument
80 Tensor expected(allocator(), data_type, TensorShape({3})); in CheckRedMax()
[all …]
/external/tensorflow/tensorflow/compiler/xla/tests/
Dconv_depthwise_test.cc115 const string data_type = GetFloatDataType(::testing::get<1>(data.param)); in DepthwiseConvolution2DTestDataToString() local
122 absl::StrJoin(spec.output_layout, "_"), data_type); in DepthwiseConvolution2DTestDataToString()
135 const string data_type = GetFloatDataType(use_bfloat16); in BuildHloTextDepthwiseConvolution2D() local
149 data_type, absl::StrJoin(spec.activation_dims, ","), in BuildHloTextDepthwiseConvolution2D()
150 absl::StrJoin(spec.activation_layout, ","), data_type, in BuildHloTextDepthwiseConvolution2D()
152 absl::StrJoin(spec.kernel_layout, ","), data_type, in BuildHloTextDepthwiseConvolution2D()
154 absl::StrJoin(spec.output_layout, ","), data_type, in BuildHloTextDepthwiseConvolution2D()
156 absl::StrJoin(spec.activation_layout, ","), data_type, in BuildHloTextDepthwiseConvolution2D()
174 data_type, absl::StrJoin(spec.activation_dims, ","), in BuildHloTextDepthwiseConvolution2D()
175 absl::StrJoin(spec.activation_layout, ","), data_type, in BuildHloTextDepthwiseConvolution2D()
[all …]
Dgrouped_convolution_test.cc124 const string data_type = GetFloatDataType(::testing::get<1>(data.param)); in GroupedConvolution2DTestDataToString() local
131 absl::StrJoin(spec.output_layout, "_"), data_type); in GroupedConvolution2DTestDataToString()
144 const string data_type = GetFloatDataType(use_bfloat16); in BuildHloTextGroupedConvolution2D() local
159 data_type, absl::StrJoin(spec.activation_dims, ","), in BuildHloTextGroupedConvolution2D()
160 absl::StrJoin(spec.activation_layout, ","), data_type, in BuildHloTextGroupedConvolution2D()
162 absl::StrJoin(spec.kernel_layout, ","), data_type, in BuildHloTextGroupedConvolution2D()
164 absl::StrJoin(spec.output_layout, ","), data_type, in BuildHloTextGroupedConvolution2D()
166 absl::StrJoin(spec.activation_layout, ","), data_type, in BuildHloTextGroupedConvolution2D()
185 data_type, absl::StrJoin(spec.activation_dims, ","), in BuildHloTextGroupedConvolution2D()
186 absl::StrJoin(spec.activation_layout, ","), data_type, in BuildHloTextGroupedConvolution2D()
[all …]
Dconv_depthwise_backprop_filter_test.cc112 const string data_type = GetFloatDataType(::testing::get<1>(data.param)); in BatchGroupedConvolution2DTestDataToString() local
118 absl::StrJoin(spec.output_dims, "x"), data_type, "_output_layout_", in BatchGroupedConvolution2DTestDataToString()
128 const string data_type = GetFloatDataType(use_bfloat16); in BuildHloTextBatchGroupedConvolution2D() local
141 data_type, absl::StrJoin(spec.activation_dims, ","), in BuildHloTextBatchGroupedConvolution2D()
142 absl::StrJoin(spec.activation_and_kernel_layout, ","), data_type, in BuildHloTextBatchGroupedConvolution2D()
144 absl::StrJoin(spec.activation_and_kernel_layout, ","), data_type, in BuildHloTextBatchGroupedConvolution2D()
146 absl::StrJoin(spec.output_layout, ","), data_type, in BuildHloTextBatchGroupedConvolution2D()
148 absl::StrJoin(spec.activation_and_kernel_layout, ","), data_type, in BuildHloTextBatchGroupedConvolution2D()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dfake_quantize_ops.cc48 void XlaNudge(xla::XlaBuilder* b, const DataType data_type, in XlaNudge() argument
55 b, data_type, quant_max_value - quant_min_value)); in XlaNudge()
57 XlaHelpers::FloatLiteral(b, data_type, quant_min_value); in XlaNudge()
60 XlaHelpers::FloatLiteral(b, data_type, quant_max_value); in XlaNudge()
70 const DataType data_type, in Quantize() argument
74 xla::XlaOp one = XlaHelpers::FloatLiteral(b, data_type, 1.0f); in Quantize()
76 xla::XlaOp half = XlaHelpers::FloatLiteral(b, data_type, 0.5f); in Quantize()
109 const DataType data_type = ctx->input_type(0); in Compile() local
113 XlaHelpers::FloatLiteral(b, data_type, nudged_input_min_); in Compile()
115 XlaHelpers::FloatLiteral(b, data_type, nudged_input_max_); in Compile()
[all …]
Dresampler_ops.cc362 xla::PrimitiveType data_type, xla::Shape data_shape) { in CalculateGradWarp() argument
373 xla::ShapeUtil::MakeShape(data_type, neighbor_broadcast_dims); in CalculateGradWarp()
382 xla::Pad(data, xla::Zero(ctx->builder(), data_type), in CalculateGradWarp()
413 xla::ConstantR1<float>(ctx->builder(), {0, 0, -1, 1}), data_type), in CalculateGradWarp()
421 xla::ConstantR1<float>(ctx->builder(), {-1, 1, 0, 0}), data_type), in CalculateGradWarp()
429 xla::ConstantR1<float>(ctx->builder(), {0, -1, 0, 1}), data_type), in CalculateGradWarp()
437 xla::ConstantR1<float>(ctx->builder(), {-1, 0, 1, 0}), data_type), in CalculateGradWarp()
448 auto one_minus_y = xla::One(ctx->builder(), data_type) - weight_y; in CalculateGradWarp()
449 auto one_minus_x = xla::One(ctx->builder(), data_type) - weight_x; in CalculateGradWarp()
463 xla::Reduce(x_before_reduce, xla::Zero(ctx->builder(), data_type), in CalculateGradWarp()
[all …]
Dquantize_and_dequantize_op.cc54 const DataType data_type = ctx->input_type(0); in Compile() local
57 OP_REQUIRES_OK(ctx, DataTypeToPrimitiveType(data_type, &xla_type)); in Compile()
68 const xla::XlaComputation* fmax = ctx->GetOrCreateMax(data_type); in Compile()
69 const xla::XlaComputation* fmin = ctx->GetOrCreateMin(data_type); in Compile()
84 const xla::XlaOp zero = XlaHelpers::Zero(b, data_type); in Compile()
85 const xla::XlaOp one = XlaHelpers::One(b, data_type); in Compile()
86 const xla::XlaOp two = XlaHelpers::FloatLiteral(b, data_type, 2.0); in Compile()
87 const xla::XlaOp half = XlaHelpers::FloatLiteral(b, data_type, 0.5); in Compile()
/external/tensorflow/tensorflow/lite/kernels/
Dmaximum_minimum.cc73 template <typename data_type>
74 static data_type op(data_type el1, data_type el2) { in op()
80 template <typename data_type>
81 static data_type op(data_type el1, data_type el2) { in op()
86 template <typename data_type, typename op_type>
91 GetTensorData<data_type>(op_context.input1), in TFLiteOperation()
93 GetTensorData<data_type>(op_context.input2), in TFLiteOperation()
95 GetTensorData<data_type>(op_context.output), in TFLiteOperation()
96 op_type::template op<data_type>); in TFLiteOperation()
/external/webrtc/webrtc/system_wrappers/source/spreadsortlib/
Dspreadsort.hpp128 template <class RandomAccessIter, class div_type, class data_type>
169 data_type tmp; in spread_sort_rec()
203 …spread_sort_rec<RandomAccessIter, div_type, data_type>(lastPos, bin_cache[u], bin_cache, cache_end… in spread_sort_rec()
208 template <class RandomAccessIter, class div_type, class data_type, class right_shift>
216 data_type tmp; in inner_swap_loop()
236 template <class RandomAccessIter, class div_type, class data_type, class right_shift>
241 …inner_swap_loop<RandomAccessIter, div_type, data_type, right_shift>(bins, nextbinstart, ii, shift,… in swap_loop()
245 …template <class RandomAccessIter, class div_type, class data_type, class right_shift, class compar…
271 …swap_loop<RandomAccessIter, div_type, data_type, right_shift>(bins, nextbinstart, u, shift, bin_si… in spread_sort_rec()
288 …spread_sort_rec<RandomAccessIter, div_type, data_type, right_shift, compare>(lastPos, bin_cache[u]… in spread_sort_rec()
[all …]
/external/deqp/external/openglcts/modules/gles3/
Des3cCopyTexImageConversionsTests.cpp257 ChannelDataType data_type; member
281 GLenum data_type; member
699 result.alpha.data_type = CHANNEL_DATA_TYPE_UNSIGNED_BYTE_8BITS; in getAlpha8OESPixelData()
700 result.blue.data_type = CHANNEL_DATA_TYPE_NONE; in getAlpha8OESPixelData()
701 result.green.data_type = CHANNEL_DATA_TYPE_NONE; in getAlpha8OESPixelData()
702 result.red.data_type = CHANNEL_DATA_TYPE_NONE; in getAlpha8OESPixelData()
704 result.data_type = type; in getAlpha8OESPixelData()
730 result.alpha.data_type = CHANNEL_DATA_TYPE_UNSIGNED_BYTE_8BITS; in getLuminance8OESPixelData()
732 result.blue.data_type = CHANNEL_DATA_TYPE_UNSIGNED_BYTE_8BITS; in getLuminance8OESPixelData()
734 result.green.data_type = CHANNEL_DATA_TYPE_UNSIGNED_BYTE_8BITS; in getLuminance8OESPixelData()
[all …]
/external/aac/libSACenc/src/
Dsacenc_nlc_enc.cpp371 static UINT huff_enc_1D(HANDLE_FDK_BITSTREAM strm, const DATA_TYPE data_type, in huff_enc_1D() argument
380 switch (data_type) { in huff_enc_1D()
390 switch (data_type) { in huff_enc_1D()
425 static void getHuffEntry(const INT lav, const DATA_TYPE data_type, const INT i, in getHuffEntry() argument
436 switch (data_type) { in getHuffEntry()
451 switch (data_type) { in getHuffEntry()
466 switch (data_type) { in getHuffEntry()
481 switch (data_type) { in getHuffEntry()
496 switch (data_type) { in getHuffEntry()
512 static UINT huff_enc_2D(HANDLE_FDK_BITSTREAM strm, const DATA_TYPE data_type, in huff_enc_2D() argument
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/
Ddepthwise_conv_op_test.py103 data_type, argument
137 }[data_type]
139 t1 = constant_op.constant(x1, shape=tensor_in_sizes, dtype=data_type)
141 t2 = constant_op.constant(x2, shape=filter_in_sizes, dtype=data_type)
182 data_type, use_gpu, grouped_conv,
196 for data_type in [dtypes.float32, dtypes.float64]:
199 input_size, filter_size, stride, padding, data_type, use_gpu=True)
206 data_type,
232 for data_type in [dtypes.float32, dtypes.float64]:
238 data_type,
[all …]
/external/clang/lib/Serialization/
DASTReaderInternals.h50 typedef llvm::SmallVector<DeclID, 4> data_type; typedef
52 data_type &Data;
55 data_type_builder(data_type &D) : Data(D) {} in data_type_builder()
104 static void MergeDataInto(const data_type &From, data_type_builder &To) { in MergeDataInto()
175 typedef IdentifierInfo * data_type; typedef
181 data_type ReadData(const internal_key_type& k,
202 struct data_type { struct
234 data_type ReadData(Selector, const unsigned char* d, unsigned DataLen);
267 typedef HeaderFileInfo data_type; typedef
284 data_type ReadData(internal_key_ref,const unsigned char *d, unsigned DataLen);
/external/tensorflow/tensorflow/compiler/tf2xla/
Dxla_helpers.cc37 xla::XlaOp XlaHelpers::Zero(xla::XlaBuilder* b, DataType data_type) { in Zero() argument
39 TF_CHECK_OK(DataTypeToPrimitiveType(data_type, &type)); in Zero()
43 xla::XlaOp XlaHelpers::One(xla::XlaBuilder* b, DataType data_type) { in One() argument
45 TF_CHECK_OK(DataTypeToPrimitiveType(data_type, &type)); in One()
49 xla::XlaOp XlaHelpers::IntegerLiteral(xla::XlaBuilder* b, DataType data_type, in IntegerLiteral() argument
52 TF_CHECK_OK(DataTypeToPrimitiveType(data_type, &type)); in IntegerLiteral()
56 xla::XlaOp XlaHelpers::FloatLiteral(xla::XlaBuilder* b, DataType data_type, in FloatLiteral() argument
59 TF_CHECK_OK(DataTypeToPrimitiveType(data_type, &type)); in FloatLiteral()
/external/chromium-trace/catapult/dependency_manager/dependency_manager/
Dbase_config.py314 dependency, platform, data_type='version_in_cs')
330 def _SetPlatformData(self, dependency, platform, data_type, data): argument
337 if (data_type == 'cloud_storage_bucket' or
338 data_type == 'cloud_storage_base_folder'):
339 self._config_data[dependency][data_type] = data
341 self._config_data[dependency]['file_info'][platform][data_type] = data
343 def _GetPlatformData(self, dependency, platform, data_type=None): argument
351 if data_type:
352 if (data_type == 'cloud_storage_bucket' or
353 data_type == 'cloud_storage_base_folder'):
[all …]
/external/deqp-deps/SPIRV-Tools/source/val/
Dvalidate_atomics.cpp114 uint32_t data_type = 0; in AtomicsPass() local
116 if (!_.GetPointerTypeInfo(pointer_type, &data_type, &storage_class)) { in AtomicsPass()
151 if (!_.IsIntScalarType(data_type) || _.GetBitWidth(data_type) != 32) { in AtomicsPass()
157 if (!_.IsFloatScalarType(data_type) && !_.IsIntScalarType(data_type)) { in AtomicsPass()
164 if (data_type != result_type) { in AtomicsPass()
188 if (value_type != data_type) { in AtomicsPass()
/external/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_atomics.cpp114 uint32_t data_type = 0; in AtomicsPass() local
116 if (!_.GetPointerTypeInfo(pointer_type, &data_type, &storage_class)) { in AtomicsPass()
152 if (!_.IsIntScalarType(data_type) || _.GetBitWidth(data_type) != 32) { in AtomicsPass()
158 if (!_.IsFloatScalarType(data_type) && !_.IsIntScalarType(data_type)) { in AtomicsPass()
165 if (data_type != result_type) { in AtomicsPass()
189 if (value_type != data_type) { in AtomicsPass()
/external/u-boot/tools/patman/
Dtest.py89 def GetData(self, data_type): argument
195 if data_type == 'good':
197 elif data_type == 'no-signoff':
199 elif data_type == 'no-license':
201 elif data_type == 'spaces':
203 elif data_type == 'indent':
209 def SetupData(self, data_type): argument
212 data = self.GetData(data_type)
/external/tensorflow/tensorflow/compiler/tests/
Ddepthwise_conv_op_test.py129 data_type, argument
151 dtype=data_type).reshape(tensor_in_sizes)
153 dtype=data_type).reshape(filter_in_sizes)
155 if data_type == np.float32:
158 self.assertEqual(data_type, np.float64)
161 t1 = array_ops.placeholder(shape=tensor_in_sizes, dtype=data_type)
162 t2 = array_ops.placeholder(shape=filter_in_sizes, dtype=data_type)
191 print("data_type:", data_type, "max diff = ",
201 for data_type in self.float_types:
203 if data_type == np.float32:
[all …]
/external/autotest/client/common_lib/cros/bluetooth/
Dbluetooth_sdp_socket.py396 data_type = header >> 3
400 if data_type == 0:
404 elif data_type <= 3 or data_type == 5:
406 data_type == 3 and (data_size == 0 or data_size == 3) or
407 data_type == 5 and data_size != 0):
414 if data_type == 2 and (ord(data[0]) & 128) != 0:
418 if data_type == 5:
423 elif data_type == 4 or data_type == 8:
433 elif data_type == 6 or data_type == 7:
/external/llvm/utils/
DlldbDataFormatters.py48 offset, self.data_type)
59 self.data_type = the_type.GetTemplateArgumentType(0)
60 self.type_size = self.data_type.GetByteSize()
83 offset, self.data_type)
89 self.data_type = self.data.GetType().GetPointeeType()
90 self.type_size = self.data_type.GetByteSize()

12345678910>>...14