Home
last modified time | relevance | path

Searched refs:bias (Results 1 – 25 of 528) sorted by relevance

12345678910>>...22

/external/deqp/modules/gles2/accuracy/
Des2aVaryingInterpolationTests.cpp64 …rfaceAccess& dst, const float coords[4*3], const Vec4& wCoord, const Vec3& scale, const Vec3& bias) in renderReference() argument
87 … float r = projectedTriInterpolate(triR[triNdx], triW[triNdx], triNx, triNy) * scale[0] + bias[0]; in renderReference()
88 … float g = projectedTriInterpolate(triG[triNdx], triW[triNdx], triNx, triNy) * scale[1] + bias[1]; in renderReference()
89 … float b = projectedTriInterpolate(triB[triNdx], triW[triNdx], triNx, triNy) * scale[2] + bias[2]; in renderReference()
213 tcu::Vec3 bias = -1.0f*m_min*scale; in iterate() local
216 (0.0f - bias[0])/scale[0], (0.5f - bias[1])/scale[1], (1.0f - bias[2])/scale[2], in iterate()
217 (0.5f - bias[0])/scale[0], (1.0f - bias[1])/scale[1], (0.5f - bias[2])/scale[2], in iterate()
218 (0.5f - bias[0])/scale[0], (0.0f - bias[1])/scale[1], (0.5f - bias[2])/scale[2], in iterate()
219 (1.0f - bias[0])/scale[0], (0.5f - bias[1])/scale[1], (0.0f - bias[2])/scale[2] in iterate()
222 …g::Message << "a_coords = " << ((tcu::Vec3(0.0f) - bias)/scale) << " -> " << ((tcu::Vec3(1.0f) - b… in iterate()
[all …]
/external/deqp/modules/gles3/accuracy/
Des3aVaryingInterpolationTests.cpp66 …rfaceAccess& dst, const float coords[4*3], const Vec4& wCoord, const Vec3& scale, const Vec3& bias) in renderReference() argument
89 … float r = projectedTriInterpolate(triR[triNdx], triW[triNdx], triNx, triNy) * scale[0] + bias[0]; in renderReference()
90 … float g = projectedTriInterpolate(triG[triNdx], triW[triNdx], triNx, triNy) * scale[1] + bias[1]; in renderReference()
91 … float b = projectedTriInterpolate(triB[triNdx], triW[triNdx], triNx, triNy) * scale[2] + bias[2]; in renderReference()
219 tcu::Vec3 bias = -1.0f*m_min*scale; in iterate() local
222 (0.0f - bias[0])/scale[0], (0.5f - bias[1])/scale[1], (1.0f - bias[2])/scale[2], in iterate()
223 (0.5f - bias[0])/scale[0], (1.0f - bias[1])/scale[1], (0.5f - bias[2])/scale[2], in iterate()
224 (0.5f - bias[0])/scale[0], (0.0f - bias[1])/scale[1], (0.5f - bias[2])/scale[2], in iterate()
225 (1.0f - bias[0])/scale[0], (0.5f - bias[1])/scale[1], (0.0f - bias[2])/scale[2] in iterate()
228 …g::Message << "a_coords = " << ((tcu::Vec3(0.0f) - bias)/scale) << " -> " << ((tcu::Vec3(1.0f) - b… in iterate()
[all …]
/external/elfutils/libdwfl/
Ddwfl_report_elf.c59 GElf_Addr start = 0, end = 0, bias = 0; in __libdwfl_elf_address_range() local
86 || (bias == 0 && end > start && end != next)) in __libdwfl_elf_address_range()
139 if (first || bias > shdr->sh_addr) in __libdwfl_elf_address_range()
141 bias = shdr->sh_addr; in __libdwfl_elf_address_range()
143 if ((shdr->sh_addr - bias + base) & (align - 1)) in __libdwfl_elf_address_range()
148 + (bias & (align - 1))); in __libdwfl_elf_address_range()
155 if (bias != 0) in __libdwfl_elf_address_range()
161 end = end - bias + start; in __libdwfl_elf_address_range()
162 bias = start - bias; in __libdwfl_elf_address_range()
194 bias = base; in __libdwfl_elf_address_range()
[all …]
Dlibdwfl.h139 const GElf_Phdr *phdr, GElf_Addr bias,
425 extern Elf *dwfl_module_getelf (Dwfl_Module *, GElf_Addr *bias)
478 Elf **elfp, Dwarf_Addr *bias)
506 Dwarf_Addr *bias)
528 Dwarf_Addr *bias)
537 extern Dwarf *dwfl_module_getdwarf (Dwfl_Module *, Dwarf_Addr *bias)
549 extern Dwarf *dwfl_addrdwarf (Dwfl *dwfl, Dwarf_Addr addr, Dwarf_Addr *bias)
554 extern Dwarf_Die *dwfl_addrdie (Dwfl *dwfl, Dwarf_Addr addr, Dwarf_Addr *bias)
557 Dwarf_Addr addr, Dwarf_Addr *bias)
561 extern Dwarf_Die *dwfl_nextcu (Dwfl *dwfl, Dwarf_Die *lastcu, Dwarf_Addr *bias)
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/
Dbias_op_test.py48 def _npBias(self, inputs, bias): argument
49 assert len(bias.shape) == 1
51 print(bias.shape)
52 assert inputs.shape[-1] == bias.shape[0]
53 return inputs + bias.reshape(([1] * (len(inputs.shape) - 1)) +
54 [bias.shape[0]])
135 def _testGradient(self, np_input, bias, dtype, data_format, use_gpu): argument
141 bias_tensor = constant_op.constant(bias, shape=bias.shape, dtype=dtype)
147 bias_tensor, bias.shape, output_tensor, np_input.shape)
153 output_tensor, np_input.shape, bias_add_grad, bias.shape)
[all …]
Dlrn_op_test.py37 def _LRN(self, input_image, lrn_depth_radius=5, bias=1.0, alpha=1.0, argument
53 np.power(bias + alpha * np.sum(patch * patch), beta))
67 bias = 1.0 + np.random.rand()
75 bias=bias,
83 bias=bias,
87 print("LRN error for bias ", bias, "alpha ", alpha, " beta ", beta, " is ",
124 bias = 1.0 + np.random.rand()
139 bias=bias,
143 print("LRN Gradient error for bias ", bias, "alpha ", alpha, " beta ", beta,
/external/tensorflow/tensorflow/contrib/lite/kernels/
Dfully_connected.cc89 TfLiteTensor* bias = GetOptionalInputTensor(context, node, kBiasTensor); in Prepare() local
103 if (bias) { in Prepare()
104 TF_LITE_ASSERT_EQ(bias->dims->data[0], num_units); in Prepare()
108 TF_LITE_ENSURE_EQ(context, NumDimensions(bias), 1); in Prepare()
116 context, input, filter, bias, output, &real_multiplier)); in Prepare()
136 TfLiteTensor* bias, TfLiteTensor* output) { in EvalPie() argument
147 if (bias) { in EvalPie()
148 tensor_utils::VectorBatchVectorAssign(bias->data.f, num_units, batch_size, in EvalPie()
181 TfLiteTensor* bias, TfLiteTensor* output) { in EvalQuantized() argument
191 GetTensorData<int32_t>(bias), GetTensorDims(bias), output_offset, \ in EvalQuantized()
[all …]
Ddepthwise_conv.cc88 TfLiteTensor* bias = nullptr; in Prepare() local
109 bias = GetInput(context, node, kBiasTensor); in Prepare()
111 TF_LITE_ENSURE_EQ(context, bias->type, kTfLiteInt32); in Prepare()
112 TF_LITE_ENSURE_EQ(context, bias->params.zero_point, 0); in Prepare()
114 TF_LITE_ENSURE_EQ(context, bias->type, data_type); in Prepare()
116 TF_LITE_ENSURE_EQ(context, NumDimensions(bias), 1); in Prepare()
118 SizeOfDimension(bias, 0)); in Prepare()
153 context, input, filter, bias, output, &real_multiplier)); in Prepare()
172 TfLiteTensor* input, TfLiteTensor* filter, TfLiteTensor* bias, in EvalFloat() argument
190 GetTensorData<float>(bias), GetTensorDims(bias), params->stride_width, in EvalFloat()
[all …]
Dconv.cc134 TfLiteTensor* bias = nullptr; in Prepare() local
141 bias = &context->tensors[node->inputs->data[2]]; in Prepare()
143 TF_LITE_ENSURE_EQ(context, bias->type, kTfLiteInt32); in Prepare()
144 TF_LITE_ENSURE_EQ(context, bias->params.zero_point, 0); in Prepare()
146 TF_LITE_ENSURE_EQ(context, bias->type, data_type); in Prepare()
148 TF_LITE_ENSURE_EQ(context, bias->dims->size, 1); in Prepare()
149 TF_LITE_ENSURE_EQ(context, bias->dims->data[0], filter->dims->data[0]); in Prepare()
185 context, input, filter, bias, output, &real_multiplier)); in Prepare()
293 TfLiteTensor* filter, TfLiteTensor* bias, in EvalQuantized() argument
307 GetTensorData<int32_t>(bias), GetTensorDims(bias), in EvalQuantized()
[all …]
/external/python/cpython2/Lib/encodings/
Dpunycode.py72 def T(j, bias): argument
74 res = 36 * (j + 1) - bias
80 def generate_generalized_integer(N, bias): argument
85 t = T(j, bias)
104 bias = divisions + (36 * delta // (delta + 38))
105 return bias
112 bias = 72
114 s = generate_generalized_integer(delta, bias)
116 bias = adapt(delta, points==0, baselen+points+1)
130 def decode_generalized_number(extended, extpos, bias, errors): argument
[all …]
/external/python/cpython3/Lib/encodings/
Dpunycode.py70 def T(j, bias): argument
72 res = 36 * (j + 1) - bias
78 def generate_generalized_integer(N, bias): argument
83 t = T(j, bias)
102 bias = divisions + (36 * delta // (delta + 38))
103 return bias
110 bias = 72
112 s = generate_generalized_integer(delta, bias)
114 bias = adapt(delta, points==0, baselen+points+1)
127 def decode_generalized_number(extended, extpos, bias, errors): argument
[all …]
/external/elfutils/tests/
Daddrcfi.c49 print_detail (int result, const Dwarf_Op *ops, size_t nops, Dwarf_Addr bias) in print_detail() argument
64 printf ("(%#" PRIx64 ")", ops[i].number + bias); in print_detail()
79 Dwarf_Addr bias; member
99 print_detail (result, ops, nops, stuff->bias); in print_register()
114 int result = dwarf_cfi_addrframe (cfi, pc - stuff->bias, &stuff->frame); in handle_cfi()
127 start += stuff->bias; in handle_cfi()
128 end += stuff->bias; in handle_cfi()
149 print_detail (result, cfa_ops, cfa_nops, stuff->bias); in handle_cfi()
164 stuff.bias = 0; in handle_address()
166 dwfl_module_eh_cfi (mod, &stuff.bias), pc, &stuff); in handle_address()
[all …]
/external/tensorflow/tensorflow/compiler/tests/
Dlrn_ops_test.py41 def _LRN(self, input_image, lrn_depth_radius=5, bias=1.0, alpha=1.0, argument
57 np.power(bias + alpha * np.sum(patch * patch), beta))
69 bias = 1.0 + np.random.rand()
77 bias=bias,
85 bias=bias,
89 print("LRN error for bias ", bias, "alpha ", alpha, " beta ", beta, " is ",
109 bias = 1.0 + np.random.rand()
119 depth_radius, bias, alpha, beta)
122 depth_radius, bias, alpha, beta)
/external/icu/icu4c/source/test/intltest/
Dpunyref.cpp135 punycode_uint n, delta, h, b, out, max_out, bias, j, m, q, k, t; in punycode_encode() local
142 bias = initial_bias; in punycode_encode()
194 t = k <= bias /* + tmin */ ? tmin : /* +tmin not needed */ in punycode_encode()
195 k >= bias + tmax ? tmax : k - bias; in punycode_encode()
202 bias = adapt(delta, h + 1, h == b); in punycode_encode()
224 punycode_uint n, out, i, max_out, bias, in punycode_decode() local
232 bias = initial_bias; in punycode_decode()
266 t = k <= bias /* + tmin */ ? tmin : /* +tmin not needed */ in punycode_decode()
267 k >= bias + tmax ? tmax : k - bias; in punycode_decode()
273 bias = adapt(i - oldi, out + 1, oldi == 0); in punycode_decode()
/external/tensorflow/tensorflow/python/ops/
Dmath_grad_test.py61 def _biasedRandN(self, shape, bias=0.1, sigma=1.0): argument
64 return value + np.sign(value) * bias
66 def _testGrad(self, shape, dtype=None, max_error=None, bias=None, sigma=None): argument
71 shape, bias=bias, sigma=sigma),
73 shape, bias=bias, sigma=sigma))
77 shape, bias=bias), dtype=dtype)
88 [3, 3], dtype=dtypes.float32, max_error=2e-5, bias=0.1, sigma=1.0)
90 [3, 3], dtype=dtypes.complex64, max_error=2e-5, bias=0.1, sigma=1.0)
94 [3, 3], dtype=dtypes.float32, max_error=100.0, bias=0.0, sigma=0.1)
96 [3, 3], dtype=dtypes.complex64, max_error=100.0, bias=0.0, sigma=0.1)
/external/elfutils/include/elfutils/
Dlibdwfl.h139 const GElf_Phdr *phdr, GElf_Addr bias,
425 extern Elf *dwfl_module_getelf (Dwfl_Module *, GElf_Addr *bias)
478 Elf **elfp, Dwarf_Addr *bias)
506 Dwarf_Addr *bias)
528 Dwarf_Addr *bias)
537 extern Dwarf *dwfl_module_getdwarf (Dwfl_Module *, Dwarf_Addr *bias)
549 extern Dwarf *dwfl_addrdwarf (Dwfl *dwfl, Dwarf_Addr addr, Dwarf_Addr *bias)
554 extern Dwarf_Die *dwfl_addrdie (Dwfl *dwfl, Dwarf_Addr addr, Dwarf_Addr *bias)
557 Dwarf_Addr addr, Dwarf_Addr *bias)
561 extern Dwarf_Die *dwfl_nextcu (Dwfl *dwfl, Dwarf_Die *lastcu, Dwarf_Addr *bias)
[all …]
/external/tensorflow/tensorflow/core/kernels/
Dbias_op.cc99 const Tensor& bias = context->input(1); in Compute() local
104 OP_REQUIRES(context, TensorShapeUtils::IsVector(bias.shape()), in Compute()
106 bias.shape().DebugString())); in Compute()
121 bias.shape().dim_size(0) == input.shape().dim_size(channel_dim), in Compute()
125 bias.shape().DebugString(), " vs. ", input.shape().DebugString())); in Compute()
141 bias.tensor<T, 1>().reshape(four_dims).broadcast(broad_cast_dims); in Compute()
147 Compute<2>(context, input, bias, output); in Compute()
150 Compute<3>(context, input, bias, output); in Compute()
153 Compute<4>(context, input, bias, output); in Compute()
156 Compute<5>(context, input, bias, output); in Compute()
[all …]
Dquantized_bias_add_op.cc40 const Tensor& bias = context->input(1); in Compute() local
49 OP_REQUIRES(context, TensorShapeUtils::IsVector(bias.shape()), in Compute()
51 bias.shape().DebugString())); in Compute()
54 context, bias.shape().dim_size(0) == input.shape().dim_size(last_dim), in Compute()
58 bias.shape().DebugString(), " vs. ", input.shape().DebugString())); in Compute()
70 auto bias_ui8_array = bias.flat<quint8>(); in Compute()
81 input_max, bias, bias_min, bias_max, output, &total_min, &total_max); in Compute()
Dbias_op.h31 typename TTypes<T>::ConstVec bias, in operator()
34 const int64_t bias_size = bias.dimension(0); in operator()
39 input.reshape(one_d) + bias.broadcast(bcast).reshape(one_d); in operator()
41 const int bias_size = bias.dimension(0); in operator()
47 To32Bit(bias).broadcast(bcast).reshape(one_d); in operator()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/stringprep/
DPunycodeReference.java142 int delta, h, b, out, max_out, bias, j, q, k, t; in encode() local
149 bias = initial_bias; in encode()
201 t = k <= bias /* + tmin */ ? tmin : /* +tmin not needed */ in encode()
202 k >= bias + tmax ? tmax : k - bias; in encode()
209 bias = adapt(delta, h + 1, (h == b)); in encode()
302 int n, out, i, max_out, bias, in decode() local
310 bias = initial_bias; in decode()
348 t = (k <= bias) /* + tmin */ ? tmin : /* +tmin not needed */ in decode()
349 (k >= (bias + tmax)) ? tmax : k - bias; in decode()
355 bias = adapt(i - oldi, out + 1, (oldi == 0)); in decode()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/stringprep/
DPunycodeReference.java145 int delta, h, b, out, max_out, bias, j, q, k, t; in encode() local
152 bias = initial_bias; in encode()
204 t = k <= bias /* + tmin */ ? tmin : /* +tmin not needed */ in encode()
205 k >= bias + tmax ? tmax : k - bias; in encode()
212 bias = adapt(delta, h + 1, (h == b)); in encode()
305 int n, out, i, max_out, bias, in decode() local
313 bias = initial_bias; in decode()
351 t = (k <= bias) /* + tmin */ ? tmin : /* +tmin not needed */ in decode()
352 (k >= (bias + tmax)) ? tmax : k - bias; in decode()
358 bias = adapt(i - oldi, out + 1, (oldi == 0)); in decode()
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pipe_wide_line.c84 const float bias = half_pixel_center ? 0.125f : 0.0f; in wideline_line() local
94 pos0[1] = pos0[1] - half_width - bias; in wideline_line()
95 pos1[1] = pos1[1] + half_width - bias; in wideline_line()
96 pos2[1] = pos2[1] - half_width - bias; in wideline_line()
97 pos3[1] = pos3[1] + half_width - bias; in wideline_line()
117 pos0[0] = pos0[0] - half_width + bias; in wideline_line()
118 pos1[0] = pos1[0] + half_width + bias; in wideline_line()
119 pos2[0] = pos2[0] - half_width + bias; in wideline_line()
120 pos3[0] = pos3[0] + half_width + bias; in wideline_line()
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_QuantizedBiasAdd.pbtxt4 name: "bias"
6 A 1D bias Tensor with size matching the last dimension of 'input'.
24 The float value that the lowest quantized bias value represents.
30 The float value that the highest quantized bias value represents.
45 summary: "Adds Tensor \'bias\' to Tensor \'input\' for Quantized types."
47 Broadcasts the values of bias on dimensions 0..N-2 of 'input'.
/external/tensorflow/tensorflow/contrib/tensor_forest/kernels/v4/
Dinput_data.cc26 float bias = test.threshold().float_value(); in DecideInequalityTest() local
29 return value <= bias; in DecideInequalityTest()
32 return value < bias; in DecideInequalityTest()
35 return value >= bias; in DecideInequalityTest()
38 return value > bias; in DecideInequalityTest()
123 float* bias, int* type) const { in RandomSample() argument
150 *bias = GetExampleValue(example, *feature_id); in RandomSample()
/external/mesa3d/src/compiler/glsl/
Dloop_controls.cpp123 const int bias[] = { -1, 0, 1 }; in calculate_iterations() local
126 for (unsigned i = 0; i < ARRAY_SIZE(bias); i++) { in calculate_iterations()
130 iter = new(mem_ctx) ir_constant(iter_value + bias[i]); in calculate_iterations()
133 iter = new(mem_ctx) ir_constant(unsigned(iter_value + bias[i])); in calculate_iterations()
136 iter = new(mem_ctx) ir_constant(float(iter_value + bias[i])); in calculate_iterations()
139 iter = new(mem_ctx) ir_constant(double(iter_value + bias[i])); in calculate_iterations()
159 iter_value += bias[i]; in calculate_iterations()

12345678910>>...22