Home
last modified time | relevance | path

Searched refs:AsFloat (Results 1 – 21 of 21) sorted by relevance

/external/tensorflow/tensorflow/lite/experimental/microfrontend/
Daudio_microfrontend.cc53 config.filterbank.upper_band_limit = m["upper_band_limit"].AsFloat(); in Init()
54 config.filterbank.lower_band_limit = m["lower_band_limit"].AsFloat(); in Init()
56 config.noise_reduction.even_smoothing = m["even_smoothing"].AsFloat(); in Init()
57 config.noise_reduction.odd_smoothing = m["odd_smoothing"].AsFloat(); in Init()
59 m["min_signal_remaining"].AsFloat(); in Init()
61 config.pcan_gain_control.strength = m["pcan_strength"].AsFloat(); in Init()
62 config.pcan_gain_control.offset = m["pcan_offset"].AsFloat(); in Init()
/external/deqp-deps/SPIRV-Tools/source/opt/
Dconstants.cpp27 assert(type()->AsFloat() != nullptr && type()->AsFloat()->width() == 32); in GetFloat()
38 assert(type()->AsFloat() != nullptr && type()->AsFloat()->width() == 64); in GetDouble()
49 assert(type()->AsFloat() != nullptr); in GetValueAsDouble()
50 if (type()->AsFloat()->width() == 32) { in GetValueAsDouble()
53 assert(type()->AsFloat()->width() == 64); in GetValueAsDouble()
211 } else if (auto* ft = type->AsFloat()) { in CreateConstant()
220 c->type()->AsFloat()) { in CreateConstant()
Dconst_folding_rules.cpp27 if (type->AsFloat()) { in HasFloatingPoint()
30 return vec_type->element_type()->AsFloat() != nullptr; in HasFloatingPoint()
157 const analysis::Float* float_type = element_type->AsFloat(); in FoldVectorTimesScalar()
356 const analysis::Float* float_type = a->type()->AsFloat(); in FoldFToIOp()
387 const analysis::Float* float_type = result_type->AsFloat(); in FoldIToFOp()
420 const analysis::Float* float_type_in_macro = result_type->AsFloat(); \
469 const analysis::Float* float_type = a->type()->AsFloat(); \
537 assert(new_type->AsFloat() && "OpDot should have a float return type."); in FoldOpDotWithConstants()
538 const analysis::Float* float_type = new_type->AsFloat(); in FoldOpDotWithConstants()
606 const analysis::Float* float_type = result_type->AsFloat(); in FoldFNegateOp()
[all …]
Dfolding_rules.cpp42 } else if (const analysis::Float* float_type = type->AsFloat()) { in ElementWidth()
52 if (type->AsFloat()) { in HasFloatingPoint()
55 return vec_type->element_type()->AsFloat() != nullptr; in HasFloatingPoint()
92 assert(c->type()->AsFloat()); in NegateFloatingPointConstant()
93 uint32_t width = c->type()->AsFloat()->width(); in NegateFloatingPointConstant()
149 if (component_type->AsFloat()) { in NegateVectorConstant()
168 } else if (c->type()->AsFloat()) { in NegateConstant()
181 assert(c->type()->AsFloat()); in Reciprocal()
183 uint32_t width = c->type()->AsFloat()->width(); in Reciprocal()
417 assert(type->AsFloat()); in PerformFloatingPointOperation()
[all …]
Dset_spec_constant_default_value_pass.cpp59 } else if (const auto* FT = type->AsFloat()) { in ParseDefaultValueStr()
104 } else if (const auto* FT = type->AsFloat()) { in ParseDefaultValueBitPattern()
Dconstants.h229 return MakeUnique<FloatConstant>(type_->AsFloat(), words_); in CopyFloatConstant()
238 assert(type()->AsFloat()->width() == 32 && in GetFloatValue()
247 assert(type()->AsFloat()->width() == 64 && in GetDoubleValue()
Dtypes.h243 Float* AsFloat() override { return this; } in AsFloat() function
244 const Float* AsFloat() const override { return this; } in AsFloat() function
Dtypes.cpp259 const Float* ft = that->AsFloat(); in IsSameImpl()
276 assert(type->AsBool() || type->AsInteger() || type->AsFloat()); in Vector()
Dtype_manager.cpp240 {SPV_OPERAND_TYPE_LITERAL_INTEGER, {type->AsFloat()->width()}}}); in GetTypeInstruction()
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dconstants.cpp27 assert(type()->AsFloat() != nullptr && type()->AsFloat()->width() == 32); in GetFloat()
38 assert(type()->AsFloat() != nullptr && type()->AsFloat()->width() == 64); in GetDouble()
49 assert(type()->AsFloat() != nullptr); in GetValueAsDouble()
50 if (type()->AsFloat()->width() == 32) { in GetValueAsDouble()
53 assert(type()->AsFloat()->width() == 64); in GetValueAsDouble()
211 } else if (auto* ft = type->AsFloat()) { in CreateConstant()
220 c->type()->AsFloat()) { in CreateConstant()
Dconst_folding_rules.cpp27 if (type->AsFloat()) { in HasFloatingPoint()
30 return vec_type->element_type()->AsFloat() != nullptr; in HasFloatingPoint()
157 const analysis::Float* float_type = element_type->AsFloat(); in FoldVectorTimesScalar()
356 const analysis::Float* float_type = a->type()->AsFloat(); in FoldFToIOp()
387 const analysis::Float* float_type = result_type->AsFloat(); in FoldIToFOp()
420 const analysis::Float* float_type_in_macro = result_type->AsFloat(); \
469 const analysis::Float* float_type = a->type()->AsFloat(); \
537 assert(new_type->AsFloat() && "OpDot should have a float return type."); in FoldOpDotWithConstants()
538 const analysis::Float* float_type = new_type->AsFloat(); in FoldOpDotWithConstants()
606 const analysis::Float* float_type = result_type->AsFloat(); in FoldFNegateOp()
[all …]
Dfolding_rules.cpp42 } else if (const analysis::Float* float_type = type->AsFloat()) { in ElementWidth()
52 if (type->AsFloat()) { in HasFloatingPoint()
55 return vec_type->element_type()->AsFloat() != nullptr; in HasFloatingPoint()
92 assert(c->type()->AsFloat()); in NegateFloatingPointConstant()
93 uint32_t width = c->type()->AsFloat()->width(); in NegateFloatingPointConstant()
149 if (component_type->AsFloat()) { in NegateVectorConstant()
168 } else if (c->type()->AsFloat()) { in NegateConstant()
181 assert(c->type()->AsFloat()); in Reciprocal()
183 uint32_t width = c->type()->AsFloat()->width(); in Reciprocal()
417 assert(type->AsFloat()); in PerformFloatingPointOperation()
[all …]
Dset_spec_constant_default_value_pass.cpp59 } else if (const auto* FT = type->AsFloat()) { in ParseDefaultValueStr()
104 } else if (const auto* FT = type->AsFloat()) { in ParseDefaultValueBitPattern()
Dconstants.h229 return MakeUnique<FloatConstant>(type_->AsFloat(), words_); in CopyFloatConstant()
238 assert(type()->AsFloat()->width() == 32 && in GetFloatValue()
247 assert(type()->AsFloat()->width() == 64 && in GetDoubleValue()
Dtypes.h243 Float* AsFloat() override { return this; } in AsFloat() function
244 const Float* AsFloat() const override { return this; } in AsFloat() function
Dtypes.cpp259 const Float* ft = that->AsFloat(); in IsSameImpl()
276 assert(type->AsBool() || type->AsInteger() || type->AsFloat()); in Vector()
Dtype_manager.cpp240 {SPV_OPERAND_TYPE_LITERAL_INTEGER, {type->AsFloat()->width()}}}); in GetTypeInstruction()
/external/tensorflow/tensorflow/lite/kernels/
Ddetection_postprocess.cc111 m["nms_score_threshold"].AsFloat(); in Init()
112 op_data->intersection_over_union_threshold = m["nms_iou_threshold"].AsFloat(); in Init()
114 op_data->scale_values.y = m["y_scale"].AsFloat(); in Init()
115 op_data->scale_values.x = m["x_scale"].AsFloat(); in Init()
116 op_data->scale_values.h = m["h_scale"].AsFloat(); in Init()
117 op_data->scale_values.w = m["w_scale"].AsFloat(); in Init()
/external/flatbuffers/include/flatbuffers/
Dflexbuffers.h477 float AsFloat() const { return static_cast<float>(AsDouble()); } in AsFloat() function
731 template<> inline float Reference::As<float>() const { return AsFloat(); }
/external/tensorflow/tensorflow/lite/toco/tflite/
Doperator.cc2128 (*attr)[key].set_f(value.AsFloat()); in ReadOptions()
2151 list->add_f(vector[i].AsFloat()); in ReadOptions()
/external/flatbuffers/tests/
Dtest.cpp2303 TEST_EQ(vec[2].AsFloat(), 2.0f); in FlexBuffersTest()