/external/tensorflow/tensorflow/compiler/xla/tests/ |
D | convolution_variants_test.cc | 387 std::vector<float> filter_data(128); in XLA_TEST_F() local 388 std::fill(filter_data.begin(), filter_data.begin() + 64, 1.0); in XLA_TEST_F() 389 std::fill(filter_data.begin() + 64, filter_data.begin() + 128, 2.0); in XLA_TEST_F() 390 const Array4D<float> filter_array(2, 1, 8, 8, filter_data); in XLA_TEST_F() 407 std::vector<float> filter_data(1 * 1 * 1 * 1); in XLA_TEST_F() local 408 std::iota(filter_data.begin(), filter_data.end(), 1.0); in XLA_TEST_F() 409 const Array4D<float> filter_array(1, 1, 1, 1, filter_data); in XLA_TEST_F() 436 std::vector<float> filter_data(1 * 1 * ky * kx); in XLA_TEST_F() local 437 std::iota(filter_data.begin(), filter_data.end(), 1.0); in XLA_TEST_F() 438 const Array4D<float> filter_array(1, 1, ky, kx, filter_data); in XLA_TEST_F() [all …]
|
/external/tensorflow/tensorflow/lite/delegates/hexagon/builders/tests/ |
D | transpose_conv_test.cc | 29 std::initializer_list<InputType> filter_data, in QuantizedTransposeConvOpModel() argument 38 filter_ = AddConstInput(filter, filter_data); in QuantizedTransposeConvOpModel() 116 std::initializer_list<uint8_t> filter_data = {129, 131, 133, 135, 137, in TEST() local 119 {1, 4, 4, 1}, {TensorType_UINT8, {1, 3, 3, 1}, -63.5, 64}, filter_data, in TEST() 138 std::initializer_list<uint8_t> filter_data = {129, 131, 133, 135, 137, 139, in TEST() local 142 {1, 6, 6, 1}, {TensorType_UINT8, {1, 3, 3, 2}, -63.5, 64}, filter_data, in TEST() 163 std::initializer_list<uint8_t> filter_data = {129, 131, 133, 135, 137, 139, in TEST() local 167 {1, 4, 4, 1}, {TensorType_UINT8, {1, 3, 3, 2}, -63.5, 64}, filter_data, in TEST() 185 const std::initializer_list<int8_t> filter_data = {14, 28, 42, 56, 71, in TEST() local 190 filter_data, {TensorType_INT8, {1, 4, 4, 1}, 0, 0, 16.0 / 255, -128}, in TEST() [all …]
|
/external/autotest/frontend/tko/ |
D | rpc_interface.py | 13 def get_test_views(**filter_data): argument 15 models.TestView.list_objects(filter_data)) 18 def get_num_test_views(**filter_data): argument 19 return models.TestView.query_count(filter_data) 23 extra_select_fields=None, **filter_data): argument 47 query = models.TestView.objects.get_query_set_with_joins(filter_data) 49 query = models.TestView.query_objects(filter_data, initial_query=query, 55 query = models.TestView.apply_presentation(query, filter_data) 64 def get_num_groups(group_by, **filter_data): argument 68 query = models.TestView.objects.get_query_set_with_joins(filter_data) [all …]
|
D | models.py | 528 def get_query_set_with_joins(self, filter_data): argument 571 test_attributes = filter_data.pop('test_attribute_fields', []) 575 test_labels = filter_data.pop('test_label_fields', []) 578 machine_labels = filter_data.pop('machine_label_fields', []) 581 iteration_keys = filter_data.pop('iteration_result_fields', []) 584 job_keyvals = filter_data.pop('job_keyval_fields', []) 587 iteration_attributes = filter_data.pop('iteration_attribute_fields', []) 595 extra_where = filter_data.get('extra_where', '') 600 include_labels = filter_data.pop('include_labels', []) 601 exclude_labels = filter_data.pop('exclude_labels', []) [all …]
|
/external/perfetto/src/tools/proto_filter/ |
D | proto_filter.cc | 195 std::string filter_data; in Main() local 199 if (!base::ReadFile(filter_in, &filter_data)) { in Main() 206 filter_data = filter.GenerateFilterBytecode(); in Main() 210 if (!filter_data.empty()) { in Main() 211 const uint8_t* data = reinterpret_cast<const uint8_t*>(filter_data.data()); in Main() 212 if (!msg_filter.LoadFilterBytecode(data, filter_data.size())) { in Main() 227 filter_data.size(), filter_out.c_str()); in Main() 228 base::WriteAll(*fd, filter_data.data(), filter_data.size()); in Main() 240 oct_str.reserve(filter_data.size() * 4 + 64); in Main() 242 for (char c : filter_data) { in Main() [all …]
|
/external/autotest/frontend/afe/ |
D | rpc_interface.py | 290 def get_labels(exclude_filters=(), **filter_data): argument 296 labels = models.Label.query_objects(filter_data) 303 static_labels = models.StaticLabel.query_objects(filter_data) 619 valid_only=True, include_current_job=False, **filter_data): argument 633 valid_only, filter_data) 695 valid_only=True, **filter_data): argument 706 valid_only, filter_data) 712 def get_tests(**filter_data): argument 714 models.Test.list_objects(filter_data)) 764 def get_profilers(**filter_data): argument [all …]
|
/external/tensorflow/tensorflow/lite/kernels/ |
D | transpose_conv_test.cc | 60 std::initializer_list<InputType> filter_data, in BaseTransposeConvOpModel() argument 72 filter_ = AddConstInput(filter, filter_data); in BaseTransposeConvOpModel() 91 PopulateTensor<InputType>(filter_, filter_data); in BaseTransposeConvOpModel() 313 std::initializer_list<uint8_t> filter_data = {129, 131, 133, 135, 137, in TEST_P() local 317 {TensorType_UINT8, {1, 3, 3, 1}, -63.5, 64}, filter_data, in TEST_P() 336 std::initializer_list<uint8_t> filter_data = {129, 131, 133, 135, 137, 139, in TEST_P() local 341 {TensorType_UINT8, {1, 3, 3, 2}, -63.5, 64}, filter_data, in TEST_P() 360 std::initializer_list<uint8_t> filter_data = {129, 131, 133, 135, 137, 139, in TEST_P() local 365 {TensorType_UINT8, {1, 3, 3, 2}, -63.5, 64}, filter_data, in TEST_P() 399 const std::initializer_list<float> filter_data = {1, 2, 3, 4, 5, 6, 7, 8, 9}; in TEST_P() local [all …]
|
/external/tensorflow/tensorflow/core/kernels/ |
D | eigen_benchmark.h | 54 Scalar* filter_data = in SpatialConvolution() local 60 device_.memset(filter_data, 123, BufferSize(filter_dims)); in SpatialConvolution() 63 Filter filter(filter_data, filter_dims); in SpatialConvolution() 72 device_.deallocate(filter_data); in SpatialConvolution() 90 Scalar* filter_data = in SpatialConvolutionBackwardInput() local 97 device_.memset(filter_data, 123, BufferSize(filter_dims)); in SpatialConvolutionBackwardInput() 100 Filter filter(filter_data, filter_dims); in SpatialConvolutionBackwardInput() 110 device_.deallocate(filter_data); in SpatialConvolutionBackwardInput() 186 Scalar* filter_data = in CuboidConvolution() local 192 device_.memset(filter_data, 123, BufferSize(filter_dims)); in CuboidConvolution() [all …]
|
D | conv_ops_test.cc | 142 Tensor filter_data(DT_FLOAT, TensorShape({filter_size, filter_size, in CompareFusedAndSeparate() local 144 test::FillIota<float>(&filter_data, 1.0f); in CompareFusedAndSeparate() 146 Const(root.WithOpName("filter"), Input::Initializer(filter_data)); in CompareFusedAndSeparate() 203 Tensor filter_data(DT_FLOAT, TensorShape({filter_size, filter_size, in CompareFusedPadOnlyAndSeparate() local 205 test::FillIota<float>(&filter_data, 1.0f); in CompareFusedPadOnlyAndSeparate() 207 Const(root.WithOpName("filter"), Input::Initializer(filter_data)); in CompareFusedPadOnlyAndSeparate() 485 std::function<void(const Tensor& input_data, const Tensor& filter_data, 489 const Tensor& input_data, const Tensor& filter_data, 555 void RunConv2DWithBias(const Tensor& input_data, const Tensor& filter_data, in RunConv2DWithBias() argument 565 ops::Const(root.WithOpName("filter"), Input::Initializer(filter_data)), in RunConv2DWithBias() [all …]
|
/external/tensorflow/tensorflow/lite/delegates/xnnpack/ |
D | transpose_conv_tester.cc | 156 std::vector<uint16_t> filter_data(OutputChannels() * KernelHeight() * in CreateTfLiteModel() local 159 std::generate(filter_data.begin(), filter_data.end(), f16rng); in CreateTfLiteModel() 164 reinterpret_cast<const uint8_t*>(filter_data.data()), in CreateTfLiteModel() 165 sizeof(uint16_t) * filter_data.size()))); in CreateTfLiteModel() 222 std::vector<float> filter_data(OutputChannels() * KernelHeight() * in CreateTfLiteModel() local 224 std::generate(filter_data.begin(), filter_data.end(), f32rng); in CreateTfLiteModel() 229 std::vector<int8_t> quantized_filter_data(filter_data.size()); in CreateTfLiteModel() 231 filter_scales.resize(1, GetInt8QuantizationScale(filter_data)); in CreateTfLiteModel() 234 filter_data.begin(), filter_data.end(), quantized_filter_data.begin(), in CreateTfLiteModel() 241 filter_data.data(), filter_quantized_dimension, filter_shape); in CreateTfLiteModel() [all …]
|
D | fully_connected_tester.cc | 142 std::vector<uint16_t> filter_data(InputChannels() * OutputChannels()); in CreateTfLiteModel() local 159 filter_data[oc * InputChannels() + ic] = value_rng(); in CreateTfLiteModel() 165 reinterpret_cast<const uint8_t*>(filter_data.data()), in CreateTfLiteModel() 166 sizeof(uint16_t) * filter_data.size()))); in CreateTfLiteModel() 194 std::vector<float> filter_data(InputChannels() * OutputChannels()); in CreateTfLiteModel() local 210 filter_data[oc * InputChannels() + ic] = value_rng(); in CreateTfLiteModel() 215 std::vector<int8_t> quantized_filter_data(filter_data.size()); in CreateTfLiteModel() 217 filter_scales.resize(1, GetInt8QuantizationScale(filter_data)); in CreateTfLiteModel() 219 std::transform(filter_data.begin(), filter_data.end(), in CreateTfLiteModel() 228 filter_data.data(), filter_quantized_dimension, filter_shape); in CreateTfLiteModel() [all …]
|
D | conv_2d_tester.cc | 158 std::vector<uint16_t> filter_data(OutputChannels() * KernelHeight() * in CreateTfLiteModel() local 180 filter_data[index] = value_rng(); in CreateTfLiteModel() 188 reinterpret_cast<const uint8_t*>(filter_data.data()), in CreateTfLiteModel() 189 sizeof(uint16_t) * filter_data.size()))); in CreateTfLiteModel() 216 std::vector<float> filter_data(OutputChannels() * KernelHeight() * in CreateTfLiteModel() local 237 filter_data[index] = value_rng(); in CreateTfLiteModel() 247 std::vector<int8_t> quantized_filter_data(filter_data.size()); in CreateTfLiteModel() 249 filter_scales.resize(1, GetInt8QuantizationScale(filter_data)); in CreateTfLiteModel() 251 std::transform(filter_data.begin(), filter_data.end(), in CreateTfLiteModel() 260 filter_data.data(), filter_quantized_dimension, filter_shape); in CreateTfLiteModel() [all …]
|
D | depthwise_conv_2d_tester.cc | 144 std::vector<uint16_t> filter_data(KernelHeight() * KernelWidth() * in CreateTfLiteModel() local 165 filter_data[index] = value_rng(); in CreateTfLiteModel() 173 reinterpret_cast<const uint8_t*>(filter_data.data()), in CreateTfLiteModel() 174 sizeof(uint16_t) * filter_data.size()))); in CreateTfLiteModel() 197 std::vector<float> filter_data(KernelHeight() * KernelWidth() * in CreateTfLiteModel() local 217 filter_data[index] = value_rng(); in CreateTfLiteModel() 224 std::vector<int8_t> quantized_filter_data(filter_data.size()); in CreateTfLiteModel() 226 filter_scales.resize(1, GetInt8QuantizationScale(filter_data)); in CreateTfLiteModel() 228 std::transform(filter_data.begin(), filter_data.end(), in CreateTfLiteModel() 237 filter_data.data(), filter_quantized_dimension, filter_shape); in CreateTfLiteModel() [all …]
|
D | quantized_transpose_conv_tester.cc | 172 std::vector<uint8_t> filter_data(OutputChannels() * KernelHeight() * in CreateTfLiteModel() local 177 std::generate(filter_data.begin(), filter_data.end(), uint8rng); in CreateTfLiteModel() 182 builder.CreateVector(reinterpret_cast<const uint8_t*>(filter_data.data()), in CreateTfLiteModel() 183 sizeof(uint8_t) * filter_data.size()))); in CreateTfLiteModel() 192 zero_point = std::accumulate(filter_data.begin(), filter_data.end(), 0) / in CreateTfLiteModel() 193 filter_data.size(); in CreateTfLiteModel()
|
/external/tensorflow/tensorflow/lite/kernels/internal/ |
D | depthwiseconv_quantized_test.cc | 126 filter_data, in DispatchDepthwiseConvGeneral() 134 params, input_shape, input_data, filter_shape, filter_data, bias_shape, in DispatchDepthwiseConvGeneral() 143 const int8* filter_data, const RuntimeShape& bias_shape, in DispatchDepthwiseConvGeneral() argument 150 input_data, filter_shape, filter_data, bias_shape, bias_data, in DispatchDepthwiseConvGeneral() 162 filter_data, in DispatchDepthwiseConvImpl() 200 params, input_shape, input_data, filter_shape, filter_data, in DispatchDepthwiseConvImpl() 208 params, input_shape, input_data, filter_shape, filter_data, in DispatchDepthwiseConvImpl() 235 params, input_shape, input_data, filter_shape, filter_data, in DispatchDepthwiseConvImpl() 271 params, input_shape, input_data, filter_shape, filter_data, in DispatchDepthwiseConvImpl() 290 params, input_shape, input_data, filter_shape, filter_data, in DispatchDepthwiseConvImpl() [all …]
|
D | depthwiseconv_float_test.cc | 36 const float* filter_data, const RuntimeShape& bias_shape, in TestOneDepthwiseConv() argument 42 filter_data, bias_shape, bias_data, output_shape, in TestOneDepthwiseConv() 45 params, input_shape, input_data, filter_shape, filter_data, bias_shape, in TestOneDepthwiseConv() 121 std::vector<float> filter_data(filter_buffer_size); in TryTestOneDepthwiseConv() local 128 FillRandom(&filter_data, -filter_amplitude, filter_amplitude); in TryTestOneDepthwiseConv() 142 filter_shape_inference, filter_data.data(), in TryTestOneDepthwiseConv()
|
D | conv_per_channel_quantized_16x8_test.cc | 42 const int8* filter_data, const RuntimeShape& bias_shape, in PickOutputMultiplier() argument 87 filter_data[Offset(filter_shape, output_channel, filter_y, in PickOutputMultiplier() 118 const RuntimeShape& filter_shape_inference, const std::int8_t* filter_data, in PickReasonableMultiplier() argument 125 filter_shape_inference, filter_data, in PickReasonableMultiplier() 219 std::vector<std::int8_t> filter_data(filter_buffer_size); in TryTestOneConvFilter() local 225 FillRandom(&filter_data, (std::int8_t)120, (std::int8_t)127); in TryTestOneConvFilter() 228 FillRandom(&filter_data); in TryTestOneConvFilter() 261 filter_data.data(), bias_shape_inference, bias_data.data(), in TryTestOneConvFilter() 271 filter_data.data(), bias_shape_inference, bias_data.data(), in TryTestOneConvFilter() 282 IntToFloat(&filter_data_float, &filter_data); in TryTestOneConvFilter()
|
D | depthwiseconv_per_channel_quantized_test.cc | 43 const int8* filter_data, const RuntimeShape& bias_shape, in PickOutputMultiplier() argument 88 int32 filter_val = filter_data[Offset( in PickOutputMultiplier() 118 const RuntimeShape& filter_shape_inference, const std::int8_t* filter_data, in PickReasonableMultiplier() argument 125 filter_shape_inference, filter_data, in PickReasonableMultiplier() 263 std::vector<std::int8_t> filter_data(filter_buffer_size); in TryTestOneDepthwiseConv3x3Filter() local 267 FillRandom(&filter_data); in TryTestOneDepthwiseConv3x3Filter() 298 filter_data.data(), bias_shape_inference, bias_data.data(), in TryTestOneDepthwiseConv3x3Filter() 314 filter_data.data(), bias_shape_inference, bias_data.data(), in TryTestOneDepthwiseConv3x3Filter() 320 filter_data.data(), bias_shape_inference, bias_data.data(), in TryTestOneDepthwiseConv3x3Filter() 337 filter_data.data(), bias_shape_inference, bias_data.data(), in TryTestOneDepthwiseConv3x3Filter()
|
D | depthwiseconv_per_channel_quantized_16x8_test.cc | 42 const int8* filter_data, const RuntimeShape& bias_shape, in PickOutputMultiplier() argument 86 int32 filter_val = filter_data[Offset( in PickOutputMultiplier() 117 const RuntimeShape& filter_shape_inference, const std::int8_t* filter_data, in PickReasonableMultiplier() argument 124 filter_shape_inference, filter_data, in PickReasonableMultiplier() 218 std::vector<std::int8_t> filter_data(filter_buffer_size); in TryTestOneDepthwiseConv3x3Filter() local 222 FillRandom(&filter_data); in TryTestOneDepthwiseConv3x3Filter() 255 filter_data.data(), bias_shape_inference, bias_data.data(), in TryTestOneDepthwiseConv3x3Filter() 264 filter_data.data(), bias_shape_inference, bias_data.data(), in TryTestOneDepthwiseConv3x3Filter() 275 IntToFloat(&filter_data_float, &filter_data); in TryTestOneDepthwiseConv3x3Filter()
|
/external/tensorflow/tensorflow/python/kernel_tests/nn_ops/ |
D | depthwise_conv_op_d9m_test.py | 67 filter_data = random_ops.random_normal(filter_shape, dtype=dtype) 77 return input_data, filter_data, strides, padding, output_shape 85 input_data, filter_data, strides, padding, _ = p 87 result_a = nn_impl.depthwise_conv2d_v2(input_data, filter_data, strides, 89 result_b = nn_impl.depthwise_conv2d_v2(input_data, filter_data, strides, 115 input_data, filter_data, strides, padding, output_shape = p 120 tape.watch(filter_data) 121 op_output = nn_impl.depthwise_conv2d_v2(input_data, filter_data, 124 return tape.gradient(gradient_injector_output, [input_data, filter_data])
|
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/integer_ops/ |
D | depthwise_conv_hybrid.h | 46 const int8* filter_data, const RuntimeShape& bias_shape, in DepthwiseConvHybridGeneral() argument 202 filter_data + filter_y * filter_height_stride, out_x_buffer_start, in DepthwiseConvHybridGeneral() 264 const RuntimeShape& filter_shape, const int8* filter_data, in DepthwiseConvHybridWithRounding() argument 304 filter_shape, filter_data, bias_shape, bias_data, output_shape, in DepthwiseConvHybridWithRounding() 315 filter_shape, filter_data, bias_shape, bias_data, output_shape, in DepthwiseConvHybridWithRounding() 323 const RuntimeShape& filter_shape, const int8* filter_data, in DepthwiseConvHybridImpl() argument 331 filter_shape, filter_data, bias_shape, bias_data, output_shape, in DepthwiseConvHybridImpl() 343 const T* filter_data, in DepthwiseConvHybridWorkerTask() 357 filter_data(filter_data), in DepthwiseConvHybridWorkerTask() 370 input_data, filter_shape, filter_data, in Run() [all …]
|
D | depthwise_conv_hybrid_3x3_filter.h | 2826 int32 start_x, int32 end_x, const int8* filter_data, 2855 const int8* filter_ptr = filter_data; 2917 ConvKernel::Run(input_scale, input_data, filter_data, 2935 const int8* filter_data, const float* bias_data, float* output_data, 2939 filter_data + params.filter_row_size + params.output_depth; 2955 filter_data + params.filter_row_size + params.output_depth; 2964 filter_ptr = filter_data + params.filter_row_size; 2984 filter_ptr = filter_data + params.input_depth; 3000 filter_ptr = filter_data; 3016 filter_ptr = filter_data + params.output_depth; [all …]
|
/external/tensorflow/tensorflow/lite/kernels/internal/reference/integer_ops/ |
D | fully_connected.h | 36 const int8_t* filter_data, const RuntimeShape& bias_shape, in FullyConnectedPerChannel() argument 57 int32_t filter_val = filter_data[out_c * accum_depth + d]; in FullyConnectedPerChannel() 78 const int8_t* filter_data, const RuntimeShape& bias_shape, in FullyConnectedPerChannel() argument 98 int32_t filter_val = filter_data[out_c * accum_depth + d]; in FullyConnectedPerChannel() 116 const int8_t* filter_data, const RuntimeShape& bias_shape, in FullyConnected() argument 141 int32_t filter_val = filter_data[out_c * accum_depth + d]; in FullyConnected() 160 const int8_t* filter_data, const RuntimeShape& bias_shape, in FullyConnected() argument 183 int32_t filter_val = filter_data[out_c * accum_depth + d]; in FullyConnected()
|
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/ |
D | depthwiseconv_multithread.h | 40 const T* filter_data, const RuntimeShape& bias_shape, in DepthwiseConvWorkerTask() 48 filter_data_(filter_data), in DepthwiseConvWorkerTask() 124 const T* filter_data, const RuntimeShape& bias_shape, in DepthwiseConv() argument 153 filter_data, bias_shape, bias_data, output_shape, in DepthwiseConv() 177 filter_data, bias_shape, bias_data, output_shape, in DepthwiseConv()
|
D | multithreaded_conv.h | 89 int input_depth, const T* filter_data, int filter_height, in operator() 105 ConstEigenMatrix filter(filter_data, input_depth, filter_count); in operator() 118 ConstEigenMatrix filter(filter_data, k, filter_count); in operator() 126 ConstEigenTensor filter(filter_data, filter_height, filter_width, in operator() 138 const float* filter_data, const RuntimeShape& bias_shape, in Conv() argument 171 input_depth, filter_data, filter_height, filter_width, in Conv()
|