/external/tensorflow/tensorflow/lite/delegates/gpu/common/transformations/ |
D | add_quant_adjustments.cc | 45 for (auto output_value : node_outputs) { in ApplyToNode() local 47 if (!output_value->quant_params) continue; in ApplyToNode() 48 auto consumers = graph->FindConsumers(output_value->id); in ApplyToNode() 64 attr.min = output_value->quant_params.value().min; in ApplyToNode() 65 attr.max = output_value->quant_params.value().max; in ApplyToNode() 66 attr.scale = output_value->quant_params.value().scale; in ApplyToNode() 72 adjusted_value->tensor = output_value->tensor; in ApplyToNode() 82 status = graph->ReplaceInput(consumer->id, output_value->id, in ApplyToNode() 93 status = graph->AddConsumer(quant_and_dequant_node->id, output_value->id); in ApplyToNode() 103 output_value->quant_params.reset(); in ApplyToNode()
|
/external/XNNPACK/src/subgraph/ |
D | static-constant-pad.c | 196 const struct xnn_value* output_value = &subgraph->values[output_id]; in xnn_define_static_constant_pad() local 197 …= xnn_subgraph_check_output_type_dense(xnn_node_type_static_constant_pad, output_id, output_value); in xnn_define_static_constant_pad() 203 switch (output_value->datatype) { in xnn_define_static_constant_pad() 221 xnn_datatype_to_string(output_value->datatype), output_value->datatype); in xnn_define_static_constant_pad() 226 xnn_node_type_static_constant_pad, input_id, input_value, output_id, output_value); in xnn_define_static_constant_pad() 232 …if (output_value->datatype == xnn_datatype_qint8 || output_value->datatype == xnn_datatype_quint8)… in xnn_define_static_constant_pad() 233 if (input_value->quantization.zero_point != output_value->quantization.zero_point) { in xnn_define_static_constant_pad() 238 input_value->quantization.zero_point, output_value->quantization.zero_point); in xnn_define_static_constant_pad() 241 if (input_value->quantization.scale != output_value->quantization.scale) { in xnn_define_static_constant_pad() 246 input_value->quantization.scale, output_value->quantization.scale); in xnn_define_static_constant_pad() [all …]
|
D | validation.c | 93 const struct xnn_value* output_value) in xnn_subgraph_check_output_type_dense() argument 95 if (output_value->type != xnn_value_type_dense_tensor) { in xnn_subgraph_check_output_type_dense() 98 xnn_node_type_to_string(node_type), output_id, output_value->type); in xnn_subgraph_check_output_type_dense() 109 const struct xnn_value* output_value) in xnn_subgraph_check_datatype_matches() argument 112 assert(output_value->datatype != xnn_datatype_invalid); in xnn_subgraph_check_datatype_matches() 113 if (input_value->datatype != output_value->datatype) { in xnn_subgraph_check_datatype_matches() 119 xnn_datatype_to_string(output_value->datatype)); in xnn_subgraph_check_datatype_matches() 132 const struct xnn_value* output_value) in xnn_subgraph_check_datatype_matches_two_inputs() argument 136 assert(output_value->datatype != xnn_datatype_invalid); in xnn_subgraph_check_datatype_matches_two_inputs() 138 input1_value->datatype != output_value->datatype) in xnn_subgraph_check_datatype_matches_two_inputs() [all …]
|
D | static-reshape.c | 179 const struct xnn_value* output_value = &subgraph->values[output_id]; in xnn_define_static_reshape() local 180 …atus = xnn_subgraph_check_output_type_dense(xnn_node_type_static_reshape, output_id, output_value); in xnn_define_static_reshape() 186 const size_t num_output_elements = xnn_shape_multiply_all_dims(&output_value->shape); in xnn_define_static_reshape() 198 switch (output_value->datatype) { in xnn_define_static_reshape() 216 xnn_datatype_to_string(output_value->datatype), output_value->datatype); in xnn_define_static_reshape() 220 …eck_datatype_matches(xnn_node_type_static_reshape, input_id, input_value, output_id, output_value); in xnn_define_static_reshape() 226 …if (output_value->datatype == xnn_datatype_qint8 || output_value->datatype == xnn_datatype_quint8)… in xnn_define_static_reshape() 227 if (input_value->quantization.zero_point != output_value->quantization.zero_point) { in xnn_define_static_reshape() 232 input_value->quantization.zero_point, output_value->quantization.zero_point); in xnn_define_static_reshape() 235 if (input_value->quantization.scale != output_value->quantization.scale) { in xnn_define_static_reshape() [all …]
|
D | static-resize-bilinear-2d.c | 269 const struct xnn_value* output_value = &subgraph->values[output_id]; in xnn_define_static_resize_bilinear_2d() local 270 …subgraph_check_output_type_dense(xnn_node_type_static_resize_bilinear_2d, output_id, output_value); in xnn_define_static_resize_bilinear_2d() 276 switch (output_value->datatype) { in xnn_define_static_resize_bilinear_2d() 295 xnn_datatype_to_string(output_value->datatype), output_value->datatype); in xnn_define_static_resize_bilinear_2d() 300 …if (output_value->datatype == xnn_datatype_qint8 || output_value->datatype == xnn_datatype_quint8)… in xnn_define_static_resize_bilinear_2d() 301 if (input_value->quantization.zero_point != output_value->quantization.zero_point) { in xnn_define_static_resize_bilinear_2d() 306 input_value->quantization.zero_point, output_value->quantization.zero_point); in xnn_define_static_resize_bilinear_2d() 309 if (input_value->quantization.scale != output_value->quantization.scale) { in xnn_define_static_resize_bilinear_2d() 314 input_value->quantization.scale, output_value->quantization.scale); in xnn_define_static_resize_bilinear_2d()
|
D | clamp.c | 212 const struct xnn_value* output_value = &subgraph->values[output_id]; in xnn_define_clamp() local 213 status = xnn_subgraph_check_output_type_dense(xnn_node_type_clamp, output_id, output_value); in xnn_define_clamp() 219 switch (output_value->datatype) { in xnn_define_clamp() 237 xnn_datatype_to_string(output_value->datatype), output_value->datatype); in xnn_define_clamp() 242 …bgraph_check_datatype_matches(xnn_node_type_clamp, input_id, input_value, output_id, output_value); in xnn_define_clamp() 249 if (input_value->quantization.zero_point != output_value->quantization.zero_point) { in xnn_define_clamp() 254 input_value->quantization.zero_point, output_value->quantization.zero_point); in xnn_define_clamp() 257 if (input_value->quantization.scale != output_value->quantization.scale) { in xnn_define_clamp() 262 input_value->quantization.scale, output_value->quantization.scale); in xnn_define_clamp()
|
D | depth-to-space.c | 214 const struct xnn_value* output_value = &subgraph->values[output_id]; in xnn_define_depth_to_space() local 215 …atus = xnn_subgraph_check_output_type_dense(xnn_node_type_depth_to_space, output_id, output_value); in xnn_define_depth_to_space() 221 switch (output_value->datatype) { in xnn_define_depth_to_space() 239 xnn_datatype_to_string(output_value->datatype), output_value->datatype); in xnn_define_depth_to_space() 245 xnn_node_type_depth_to_space, input_id, input_value, output_id, output_value); in xnn_define_depth_to_space() 252 if (input_value->quantization.zero_point != output_value->quantization.zero_point) { in xnn_define_depth_to_space() 257 input_value->quantization.zero_point, output_value->quantization.zero_point); in xnn_define_depth_to_space() 260 if (input_value->quantization.scale != output_value->quantization.scale) { in xnn_define_depth_to_space() 265 input_value->quantization.scale, output_value->quantization.scale); in xnn_define_depth_to_space()
|
/external/tensorflow/tensorflow/lite/kernels/internal/reference/ |
D | prelu.h | 51 int32_t output_value; in BroadcastPrelu4DSlow() local 53 output_value = MultiplyByQuantizedMultiplier( in BroadcastPrelu4DSlow() 60 output_value = MultiplyByQuantizedMultiplier( in BroadcastPrelu4DSlow() 64 output_value += params.output_offset; in BroadcastPrelu4DSlow() 69 std::min(quantized_max, std::max(quantized_min, output_value)); in BroadcastPrelu4DSlow() 89 int32_t output_value; in Prelu() local 91 output_value = MultiplyByQuantizedMultiplier( in Prelu() 96 output_value = MultiplyByQuantizedMultiplier(input_value * alpha_value, in Prelu() 100 output_value += params.output_offset; in Prelu() 103 std::min(quantized_max, std::max(quantized_min, output_value)); in Prelu()
|
D | hard_swish.h | 154 int16_t output_value = gemmlowp::RoundingDivideByPOT( in HardSwish() local 156 output_value += params.output_zero_point; in HardSwish() 157 output_value = in HardSwish() 158 std::min<int16_t>(output_value, std::numeric_limits<T>::max()); in HardSwish() 159 output_value = in HardSwish() 160 std::max<int16_t>(output_value, std::numeric_limits<T>::min()); in HardSwish() 161 output_data[i] = output_value; in HardSwish()
|
/external/XNNPACK/test/ |
D | vlrelu-microkernel-tester.h | 116 …int32_t output_value = math_asr_s32(input_value * multiplier + INT32_C(0x4000), 15) + output_zero_… in Test() local 117 output_value = std::min<int32_t>(output_value, std::numeric_limits<int8_t>::max()); in Test() 118 output_value = std::max<int32_t>(output_value, std::numeric_limits<int8_t>::min()); in Test() 119 output_ref[i] = static_cast<int8_t>(output_value); in Test() 161 …int32_t output_value = math_asr_s32(input_value * multiplier + INT32_C(0x4000), 15) + output_zero_… in Test() local 162 output_value = std::min<int32_t>(output_value, std::numeric_limits<uint8_t>::max()); in Test() 163 output_value = std::max<int32_t>(output_value, std::numeric_limits<uint8_t>::min()); in Test() 164 output_ref[i] = static_cast<uint8_t>(output_value); in Test()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | random_index_shuffle_test.cc | 39 const uint64 output_value = index_shuffle(value, key, max_value); in TEST_P() local 40 EXPECT_GE(output_value, 0); in TEST_P() 41 EXPECT_LE(output_value, max_value); in TEST_P() 42 EXPECT_FALSE(seen[output_value]); in TEST_P() 43 seen[output_value] = true; in TEST_P()
|
/external/OpenCL-CTS/test_conformance/spirv_new/spirv_asm/ |
D | op_spec_constant_ulong_simple.spvasm64 | 15 OpName %output_value "output_value" 29 %output_value = OpFunctionParameter %_ptr_CrossWorkgroup_ulong 31 %12 = OpLoad %ulong %output_value Aligned 8 34 OpStore %output_value %add Aligned 8
|
D | op_spec_constant_half_simple.spvasm32 | 15 OpName %output_value "output_value" 29 %output_value = OpFunctionParameter %_ptr_CrossWorkgroup_half 31 %12 = OpLoad %half %output_value Aligned 2 34 OpStore %output_value %add Aligned 2
|
D | op_spec_constant_ushort_simple.spvasm64 | 15 OpName %output_value "output_value" 29 %output_value = OpFunctionParameter %_ptr_CrossWorkgroup_ushort 31 %12 = OpLoad %ushort %output_value Aligned 2 34 OpStore %output_value %add Aligned 2
|
D | op_spec_constant_half_simple.spvasm64 | 15 OpName %output_value "output_value" 29 %output_value = OpFunctionParameter %_ptr_CrossWorkgroup_half 31 %12 = OpLoad %half %output_value Aligned 2 34 OpStore %output_value %add Aligned 2
|
D | op_spec_constant_uint_simple.spvasm32 | 14 OpName %output_value "output_value" 28 %output_value = OpFunctionParameter %_ptr_CrossWorkgroup_uint 30 %12 = OpLoad %uint %output_value Aligned 4 33 OpStore %output_value %add Aligned 4
|
D | op_spec_constant_ushort_simple.spvasm32 | 15 OpName %output_value "output_value" 29 %output_value = OpFunctionParameter %_ptr_CrossWorkgroup_ushort 31 %12 = OpLoad %ushort %output_value Aligned 2 34 OpStore %output_value %add Aligned 2
|
D | op_spec_constant_double_simple.spvasm64 | 15 OpName %output_value "output_value" 29 %output_value = OpFunctionParameter %_ptr_CrossWorkgroup_double 31 %12 = OpLoad %double %output_value Aligned 8 34 OpStore %output_value %add Aligned 8
|
D | op_spec_constant_uint_simple.spvasm64 | 14 OpName %output_value "output_value" 28 %output_value = OpFunctionParameter %_ptr_CrossWorkgroup_uint 30 %12 = OpLoad %uint %output_value Aligned 4 33 OpStore %output_value %add Aligned 4
|
D | op_spec_constant_float_simple.spvasm64 | 14 OpName %output_value "output_value" 28 %output_value = OpFunctionParameter %_ptr_CrossWorkgroup_float 30 %12 = OpLoad %float %output_value Aligned 4 33 OpStore %output_value %add Aligned 4
|
D | op_spec_constant_ulong_simple.spvasm32 | 15 OpName %output_value "output_value" 29 %output_value = OpFunctionParameter %_ptr_CrossWorkgroup_ulong 31 %12 = OpLoad %ulong %output_value Aligned 8 34 OpStore %output_value %add Aligned 8
|
D | op_spec_constant_double_simple.spvasm32 | 15 OpName %output_value "output_value" 29 %output_value = OpFunctionParameter %_ptr_CrossWorkgroup_double 31 %12 = OpLoad %double %output_value Aligned 8 34 OpStore %output_value %add Aligned 8
|
D | op_spec_constant_float_simple.spvasm32 | 14 OpName %output_value "output_value" 28 %output_value = OpFunctionParameter %_ptr_CrossWorkgroup_float 30 %12 = OpLoad %float %output_value Aligned 4 33 OpStore %output_value %add Aligned 4
|
D | op_spec_constant_uchar_simple.spvasm32 | 15 OpName %output_value "output_value" 30 %output_value = OpFunctionParameter %_ptr_CrossWorkgroup_uchar 32 %12 = OpLoad %uchar %output_value Aligned 1 35 OpStore %output_value %add Aligned 1
|
D | op_spec_constant_uchar_simple.spvasm64 | 15 OpName %output_value "output_value" 30 %output_value = OpFunctionParameter %_ptr_CrossWorkgroup_uchar 32 %12 = OpLoad %uchar %output_value Aligned 1 35 OpStore %output_value %add Aligned 1
|