Home
last modified time | relevance | path

Searched refs:float_value (Results 1 – 25 of 32) sorted by relevance

12

/third_party/vk-gl-cts/external/openglcts/modules/gles31/
Des31cTextureStorageMultisampleGLCoverageTests.cpp134 glw::GLfloat float_value = -1.0f; in iterate() local
136 gl.getFloatv(pname, &float_value); in iterate()
139 if (de::abs(float_value - float(int_value)) > epsilon) in iterate()
141 …tCtx.getLog() << tcu::TestLog::Message << "An invalid floating-point value [" << float_value << "]" in iterate()
153 glw::GLfloat float_value = 1.0f; in iterate() local
157 gl.getFloatv(GL_TEXTURE_BINDING_2D_MULTISAMPLE, &float_value); in iterate()
163 if (bool_value != GL_FALSE || de::abs(float_value) > epsilon || int_value != 0) in iterate()
171 float_value = 1.0f; in iterate()
175 gl.getFloatv(GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY_OES, &float_value); in iterate()
182 if (bool_value != GL_FALSE || de::abs(float_value) > epsilon || int_value != 0) in iterate()
[all …]
Des31cTextureStorageMultisampleGetTexLevelParameterifvTests.cpp605 glw::GLfloat float_value = 0.0f; in iterate() local
804 gl.getTexLevelParameterfv(target, 0 /* level */, pname, &float_value); in iterate()
821 DE_ASSERT(float_value == (float)(int)float_value); in iterate()
822 int_value = (int)float_value; in iterate()
1058 float float_value = 0; in iterate() local
1081 gl.getTexLevelParameterfv(texture_target, max_lod, GL_TEXTURE_RED_TYPE, &float_value); in iterate()
1082 red_type = (glw::GLint)float_value; in iterate()
1084 gl.getTexLevelParameterfv(texture_target, max_lod, GL_TEXTURE_RED_SIZE, &float_value); in iterate()
1085 red_size = (glw::GLint)float_value; in iterate()
1087 gl.getTexLevelParameterfv(texture_target, max_lod, GL_TEXTURE_INTERNAL_FORMAT, &float_value); in iterate()
[all …]
Des31cTextureStorageMultisampleDependenciesTests.cpp2248 const glw::GLfloat float_value = (glw::GLfloat)value; in checkAllTexParameterInvocations() local
2252 gl.texParameterf(texture_target, pname, float_value); in checkAllTexParameterInvocations()
2278 gl.texParameterfv(texture_target, pname, &float_value); in checkAllTexParameterInvocations()
/third_party/mindspore/tests/ut/cpp/dataset/
Dtensor_row_test.cc63 float float_value = 12.57; in TEST_F() local
65 s = TensorRow::ConvertToTensorRow(float_value, &float_output); in TEST_F()
68 Tensor::CreateScalar(float_value, &expected_tensor); in TEST_F()
102 std::vector<double> float_value = {12.57, 0.264}; in TEST_F() local
104 s = TensorRow::ConvertToTensorRow(float_value, &float_output); in TEST_F()
107 Tensor::CreateFromVector(float_value, &expected_tensor); in TEST_F()
140 float float_value = 12.57; in TEST_F() local
144 Tensor::CreateScalar(float_value, &input_tensor); in TEST_F()
148 ASSERT_EQ(float_value, result); in TEST_F()
179 std::vector<double> float_value = {12.57, 0.264}; in TEST_F() local
[all …]
/third_party/vk-gl-cts/external/openglcts/modules/glesext/texture_cube_map_array/
DesextcTextureCubeMapArrayGetterCalls.cpp422 glw::GLfloat float_value = 0.0f; in verifyTextureBindings() local
439 gl.getFloatv(GL_TEXTURE_BINDING_CUBE_MAP_ARRAY, &float_value); in verifyTextureBindings()
442 if (de::abs(float_value - static_cast<float>(m_to_id)) > epsilon) in verifyTextureBindings()
454 if (de::abs(float_value - static_cast<float>(m_to_id)) > epsilon) in verifyTextureBindings()
512 glw::GLfloat float_value = 0.0f; in verifyGetTexLevelParameters() local
536 pname, &float_value); in verifyGetTexLevelParameters()
683 …if ((should_use_equal_comparison && (de::abs(float_value - (expected_property_float_value)) > epsi… in verifyGetTexLevelParameters()
684 (!should_use_equal_comparison && (expected_property_float_value < float_value))) in verifyGetTexLevelParameters()
691 << float_value << "]" in verifyGetTexLevelParameters()
/third_party/mesa3d/src/gallium/drivers/r300/compiler/
Dradeon_inline_literals.c98 float float_value; in rc_inline_literals() local
129 float_value = constant->u.Immediate[swz]; in rc_inline_literals()
130 ret = ieee_754_to_r300_float(float_value, in rc_inline_literals()
/third_party/vk-gl-cts/external/openglcts/modules/glesext/tessellation_shader/
DesextcTessellationShaderProperties.cpp79 glw::GLfloat float_value[4] = { 0.0f }; in iterate() local
90 gl.getFloatv(pname, float_value); in iterate()
121 if ((n_components >= 1 && de::abs(float_value[0] - (float)expected_value) > epsilon) || in iterate()
122 (n_components >= 2 && de::abs(float_value[1] - (float)expected_value) > epsilon) || in iterate()
123 (n_components >= 3 && de::abs(float_value[2] - (float)expected_value) > epsilon) || in iterate()
124 (n_components >= 4 && de::abs(float_value[3] - (float)expected_value) > epsilon)) in iterate()
/third_party/mindspore/mindspore/core/ops/
Dfill.cc55 auto float_value = GetValue<float>(x_value); in FillInfer() local
56 SetTensorData(tensor->data_c(), float_value, mem_size); in FillInfer()
/third_party/boost/libs/compute/test/
Dtest_functional_bind.cpp31 float float_value; member
34 BOOST_COMPUTE_ADAPT_STRUCT(data_struct, data_struct, (int_value, float_value))
224 data.float_value = 4.56f; in BOOST_AUTO_TEST_CASE()
/third_party/mindspore/mindspore/ccsrc/transform/express_ir/
Dmindir_exporter.cc610 auto float_value = value->cast<UIntPtr>(); in SetTypeToAttributeProto() local
611 tensor_proto->set_data_type(GetMindirDataBitsUIntType(float_value->nbits())); in SetTypeToAttributeProto()
615 auto float_value = value->cast<FloatPtr>(); in SetTypeToAttributeProto() local
616 tensor_proto->set_data_type(GetMindirDataBitsFloatType(float_value->nbits())); in SetTypeToAttributeProto()
629 auto float_value = elem_type->cast<FloatPtr>(); in SetTypeToAttributeProto() local
630 tensor_proto->set_data_type(GetMindirDataBitsFloatType(float_value->nbits())); in SetTypeToAttributeProto()
734 auto float_value = value->cast<FloatPtr>(); in SetScalarToAttributeProto_irs() local
735 tensor_proto->set_data_type(GetMindirDataBitsFloatType(float_value->nbits())); in SetScalarToAttributeProto_irs()
/third_party/protobuf/python/google/protobuf/internal/
Djson_format_test.py70 message.float_value = float('-inf')
824 message.float_value = float('nan')
829 self.assertTrue(math.isnan(parsed_message.float_value))
844 message.float_value = 1.123456789
855 message.float_value = 1.1000000011
859 message.float_value = 1.00000075e-36
863 message.float_value = 12345678912345e+11
877 message.float_value = struct.unpack('<f', byte_array)[0]
/third_party/jerryscript/jerry-core/ecma/base/
Decma-helpers-value.c970 ecma_update_float_number (ecma_value_t float_value, /**< original float value */ in ecma_update_float_number() argument
973 JERRY_ASSERT (ecma_is_value_float_number (float_value)); in ecma_update_float_number()
976 ecma_number_t *number_p = (ecma_number_t *) ecma_get_pointer_from_ecma_value (float_value); in ecma_update_float_number()
987 return float_value; in ecma_update_float_number()
/third_party/protobuf/php/tests/proto/
Dtest_wrapper_type_setters.proto9 google.protobuf.FloatValue float_value = 2; field
/third_party/protobuf/src/google/protobuf/util/
Djson_format_proto3.proto61 float float_value = 6; field
126 google.protobuf.FloatValue float_value = 6; field
/third_party/vk-gl-cts/external/openglcts/modules/gl/
Dgl4cShadingLanguage420PackTests.cpp15377 static const GLfloat float_value = 0.125; in prepareUniforms() local
15381 static const GLfloat float_data[16] = { float_value, float_value, float_value, float_value, in prepareUniforms()
15382 float_value, float_value, float_value, float_value, in prepareUniforms()
15383 float_value, float_value, float_value, float_value, in prepareUniforms()
15384 float_value, float_value, float_value, float_value }; in prepareUniforms()
15424 static const GLfloat float_value = 0.125f; in prepareVertexBuffer() local
15428 static const GLfloat float_data[16] = { float_value, float_value, float_value, float_value, in prepareVertexBuffer()
15429 float_value, float_value, float_value, float_value, in prepareVertexBuffer()
15430 float_value, float_value, float_value, float_value, in prepareVertexBuffer()
15431 float_value, float_value, float_value, float_value }; in prepareVertexBuffer()
/third_party/mesa3d/src/microsoft/compiler/
Ddxil_internal.h261 double float_value; member
Ddxil_module.c1670 if (c->float_value == value) in dxil_module_get_float_const()
1678 c->float_value = value; in dxil_module_get_float_const()
1694 if (c->float_value == value) in dxil_module_get_double_const()
1702 c->float_value = value; in dxil_module_get_double_const()
2136 if (!emit_float_value(m, c->float_value)) in emit_consts()
2140 if (!emit_double_value(m, c->float_value)) in emit_consts()
/third_party/protobuf/src/google/protobuf/util/internal/testdata/
Ddefault_value_test.proto38 float float_value = 3; field
/third_party/protobuf/src/google/protobuf/util/internal/
Dprotostream_objectwriter.cc950 StatusOr<float> float_value = data.ToFloat(); in RenderStructValue() local
951 if (float_value.ok()) { in RenderStructValue()
954 DataPiece(SimpleDtoa(float_value.value()), true)); in RenderStructValue()
/third_party/protobuf/python/
Dmox.py835 def __init__(self, float_value, places=7): argument
843 self._float_value = float_value
/third_party/skia/third_party/externals/abseil-cpp/absl/numeric/
Dint128_test.cc613 TypeParam float_value = std::ldexp(static_cast<TypeParam>(0x9f5b), i); in TYPED_TEST() local
616 EXPECT_EQ(float_value, static_cast<TypeParam>(int_value)); in TYPED_TEST()
617 EXPECT_EQ(-float_value, static_cast<TypeParam>(-int_value)); in TYPED_TEST()
618 EXPECT_EQ(int_value, absl::int128(float_value)); in TYPED_TEST()
619 EXPECT_EQ(-int_value, absl::int128(-float_value)); in TYPED_TEST()
/third_party/abseil-cpp/absl/numeric/
Dint128_test.cc608 TypeParam float_value = std::ldexp(static_cast<TypeParam>(0x9f5b), i); in TYPED_TEST() local
611 EXPECT_EQ(float_value, static_cast<TypeParam>(int_value)); in TYPED_TEST()
612 EXPECT_EQ(-float_value, static_cast<TypeParam>(-int_value)); in TYPED_TEST()
613 EXPECT_EQ(int_value, absl::int128(float_value)); in TYPED_TEST()
614 EXPECT_EQ(-int_value, absl::int128(-float_value)); in TYPED_TEST()
/third_party/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_helpers.cc702 std::string float_value = SimpleFtoa(value); in DefaultValue() local
706 if (float_value.find_first_of(".eE") != std::string::npos) { in DefaultValue()
707 float_value.push_back('f'); in DefaultValue()
709 return float_value; in DefaultValue()
/third_party/protobuf/java/util/src/test/proto/com/google/protobuf/util/
Djson_test.proto153 google.protobuf.FloatValue float_value = 5; field
/third_party/skia/third_party/externals/tint/src/reader/spirv/
Dparser_impl.cc1376 float float_value; in EmitScalarSpecConstants() local
1378 std::memcpy(&float_value, &literal_value, sizeof(float_value)); in EmitScalarSpecConstants()
1379 ast_expr = create<ast::FloatLiteralExpression>(Source{}, float_value); in EmitScalarSpecConstants()

12