Home
last modified time | relevance | path

Searched refs:floats (Results 1 – 25 of 568) sorted by relevance

12345678910>>...23

/external/snakeyaml/src/test/java/org/yaml/snakeyaml/array/
DFloatArr.java21 private float[] floats; field in FloatArr
26 public FloatArr(float[] floats) { in FloatArr() argument
27 this.floats = floats; in FloatArr()
31 return Arrays.toString(floats); in toString()
35 return floats; in getFloats()
38 public void setFloats(float[] floats) { in setFloats() argument
39 this.floats = floats; in setFloats()
/external/skia/tests/
DF16StagesTest.cpp14 float floats[16] = { in DEF_TEST() local
21 SkRasterPipeline_MemoryCtx f32 = { floats, 0 }, in DEF_TEST()
45 REPORTER_ASSERT(r, floats[0] == 0.00f); in DEF_TEST()
46 REPORTER_ASSERT(r, floats[1] == 0.25f); in DEF_TEST()
47 REPORTER_ASSERT(r, floats[2] == 0.50f); in DEF_TEST()
48 REPORTER_ASSERT(r, floats[3] == 1.00f); in DEF_TEST()
49 REPORTER_ASSERT(r, floats[4] == -1.25f); in DEF_TEST()
50 REPORTER_ASSERT(r, floats[5] == -0.50f); in DEF_TEST()
51 REPORTER_ASSERT(r, floats[6] == 1.25f); in DEF_TEST()
52 REPORTER_ASSERT(r, floats[7] == 2.00f); in DEF_TEST()
/external/skqp/tests/
DF16StagesTest.cpp14 float floats[16] = { in DEF_TEST() local
21 SkRasterPipeline_MemoryCtx f32 = { floats, 0 }, in DEF_TEST()
45 REPORTER_ASSERT(r, floats[0] == 0.00f); in DEF_TEST()
46 REPORTER_ASSERT(r, floats[1] == 0.25f); in DEF_TEST()
47 REPORTER_ASSERT(r, floats[2] == 0.50f); in DEF_TEST()
48 REPORTER_ASSERT(r, floats[3] == 1.00f); in DEF_TEST()
49 REPORTER_ASSERT(r, floats[4] == -1.25f); in DEF_TEST()
50 REPORTER_ASSERT(r, floats[5] == -0.50f); in DEF_TEST()
51 REPORTER_ASSERT(r, floats[6] == 1.25f); in DEF_TEST()
52 REPORTER_ASSERT(r, floats[7] == 2.00f); in DEF_TEST()
/external/deqp/external/openglcts/modules/gl/
Dgl3cGPUShader5Tests.cpp861 static const glw::GLfloat floats[4] = { -1.0f, -1234.0f, 1.0f, 1234.0f }; in iterate() local
869 { Utils::VARIABLE_TYPE_FLOAT, "float", floats }, in iterate()
873 { Utils::VARIABLE_TYPE_INT, "int", floats }, in iterate()
874 { Utils::VARIABLE_TYPE_FLOAT, "float", floats }, in iterate()
879 { Utils::VARIABLE_TYPE_VEC2, "vec2", floats }, in iterate()
883 { Utils::VARIABLE_TYPE_IVEC2, "ivec2", floats }, in iterate()
884 { Utils::VARIABLE_TYPE_VEC2, "vec2", floats }, in iterate()
889 { Utils::VARIABLE_TYPE_VEC3, "vec3", floats }, in iterate()
893 { Utils::VARIABLE_TYPE_IVEC3, "ivec3", floats }, in iterate()
894 { Utils::VARIABLE_TYPE_VEC3, "vec3", floats }, in iterate()
[all …]
/external/tensorflow/tensorflow/compiler/xla/tests/
Dround_trip_packed_literal_test.cc50 absl::Span<float> floats(absl::bit_cast<float*>(data.data()), 2); in TEST_F()
51 floats[0] = 42.0; in TEST_F()
52 floats[1] = 24.0; in TEST_F()
72 absl::Span<float> floats(absl::bit_cast<float*>(data.data()), 4); in TEST_F()
74 floats[0] = 42.0; // y=0,x=0 in TEST_F()
75 floats[1] = 24.0; // y=0,x=1 in TEST_F()
76 floats[2] = 64.0; // y=1,x=0 in TEST_F()
77 floats[3] = 46.0; // y=1,x=1 in TEST_F()
105 absl::Span<float> floats(absl::bit_cast<float*>(data.data()), 4); in TEST_F()
107 floats[0] = 42.0; // y=0,x=0 in TEST_F()
[all …]
/external/llvm-project/llvm/test/CodeGen/SystemZ/
Dvec-conv-03.ll6 define <4 x i32> @f1(<4 x float> %floats) {
10 %dwords = fptosi <4 x float> %floats to <4 x i32>
15 define <4 x i32> @f2(<4 x float> %floats) {
19 %dwords = fptoui <4 x float> %floats to <4 x i32>
28 %floats = sitofp <4 x i32> %dwords to <4 x float>
29 ret <4 x float> %floats
37 %floats = uitofp <4 x i32> %dwords to <4 x float>
38 ret <4 x float> %floats
Dvec-strict-conv-03.ll11 define <4 x i32> @f1(<4 x float> %floats) #0 {
15 %words = call <4 x i32> @llvm.experimental.constrained.fptosi.v4i32.v4f32(<4 x float> %floats,
21 define <4 x i32> @f2(<4 x float> %floats) #0 {
25 %words = call <4 x i32> @llvm.experimental.constrained.fptoui.v4i32.v4f32(<4 x float> %floats,
35 %floats = call <4 x float> @llvm.experimental.constrained.sitofp.v4f32.v4i32(<4 x i32> %dwords,
38 ret <4 x float> %floats
46 %floats = call <4 x float> @llvm.experimental.constrained.uitofp.v4f32.v4i32(<4 x i32> %dwords,
49 ret <4 x float> %floats
Dvec-conv-01.ll71 %floats = load <2 x float>, <2 x float> *%ptr
72 %dwords = fptosi <2 x float> %floats to <2 x i64>
78 %floats = load <2 x float>, <2 x float> *%ptr
79 %dwords = fptoui <2 x float> %floats to <2 x i64>
85 %floats = sitofp <2 x i64> %dwords to <2 x float>
86 store <2 x float> %floats, <2 x float> *%ptr
92 %floats = uitofp <2 x i64> %dwords to <2 x float>
93 store <2 x float> %floats, <2 x float> *%ptr
Dvec-strict-conv-01.ll98 %floats = load <2 x float>, <2 x float> *%ptr
99 %dwords = call <2 x i64> @llvm.experimental.constrained.fptosi.v2i64.v2f32(<2 x float> %floats,
106 %floats = load <2 x float>, <2 x float> *%ptr
107 %dwords = call <2 x i64> @llvm.experimental.constrained.fptoui.v2i64.v2f32(<2 x float> %floats,
114 %floats = call <2 x float> @llvm.experimental.constrained.sitofp.v2f32.v2i64(<2 x i64> %dwords,
117 store <2 x float> %floats, <2 x float> *%ptr
123 %floats = call <2 x float> @llvm.experimental.constrained.uitofp.v2f32.v2i64(<2 x i64> %dwords,
126 store <2 x float> %floats, <2 x float> *%ptr
/external/skia/modules/canvaskit/
Drt_shader.js18 CanvasKit.RuntimeEffect.prototype.makeShader = function(floats, isOpaque, localMatrix) { argument
20 var fptr = copy1dArray(floats, "HEAPF32");
24 return this._makeShader(fptr, floats.length * 4, !!isOpaque, localMatrixPtr);
28 …CanvasKit.RuntimeEffect.prototype.makeShaderWithChildren = function(floats, isOpaque, childrenShad… argument
30 var fptr = copy1dArray(floats, "HEAPF32");
41 return this._makeShaderWithChildren(fptr, floats.length * 4, !!isOpaque, childrenPointers,
/external/eigen/unsupported/test/
Dcxx11_tensor_cast_float16_cuda.cu29 Tensor<float, 1> floats(num_elem); in test_cuda_conversion() local
30 floats.setRandom(); in test_cuda_conversion()
43 gpu_device.memcpyHostToDevice(d_float, floats.data(), num_elem*sizeof(float)); in test_cuda_conversion()
66 Tensor<float, 1> floats(num_elem); in test_fallback_conversion() local
67 floats.setRandom(); in test_fallback_conversion()
69 Eigen::Tensor<Eigen::half, 1> halfs = floats.cast<Eigen::half>(); in test_fallback_conversion()
73 VERIFY_IS_APPROX(floats(i), conv(i)); in test_fallback_conversion()
/external/llvm/test/CodeGen/SystemZ/
Dvec-conv-01.ll71 %floats = load <2 x float>, <2 x float> *%ptr
72 %dwords = fptosi <2 x float> %floats to <2 x i64>
78 %floats = load <2 x float>, <2 x float> *%ptr
79 %dwords = fptoui <2 x float> %floats to <2 x i64>
85 %floats = sitofp <2 x i64> %dwords to <2 x float>
86 store <2 x float> %floats, <2 x float> *%ptr
92 %floats = uitofp <2 x i64> %dwords to <2 x float>
93 store <2 x float> %floats, <2 x float> *%ptr
/external/llvm/test/CodeGen/Mips/cconv/
Darguments-float.ll21 @floats = global [11 x float] zeroinitializer
108 %0 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 1
110 %1 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 2
112 %2 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 3
114 %3 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 4
116 %4 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 5
118 %5 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 6
120 %6 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 7
122 %7 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 8
124 %8 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 9
[all …]
Darguments-hard-float.ll21 @floats = global [11 x float] zeroinitializer
90 %0 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 1
92 %1 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 2
94 %2 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 3
96 %3 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 4
98 %4 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 5
100 %5 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 6
102 %6 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 7
104 %7 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 8
106 %8 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 9
[all …]
/external/llvm-project/llvm/test/CodeGen/Mips/cconv/
Darguments-float.ll21 @floats = global [11 x float] zeroinitializer
108 %0 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 1
110 %1 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 2
112 %2 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 3
114 %3 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 4
116 %4 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 5
118 %5 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 6
120 %6 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 7
122 %7 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 8
124 %8 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 9
[all …]
Darguments-hard-float.ll21 @floats = global [11 x float] zeroinitializer
90 %0 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 1
92 %1 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 2
94 %2 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 3
96 %3 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 4
98 %4 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 5
100 %5 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 6
102 %6 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 7
104 %7 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 8
106 %8 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 9
[all …]
/external/tensorflow/tensorflow/compiler/xla/tools/
Dhex_floats_to_packed_literal.cc59 std::vector<float> floats; in main() local
67 floats.push_back(value); in main()
70 tensorflow::StringPiece content(absl::bit_cast<const char*>(floats.data()), in main()
71 floats.size() * sizeof(float)); in main()
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/
Dgl_program.cc107 std::vector<GLfloat> floats(value.size() * 4, 0); in operator ()() local
109 floats[i * 4] = value[i].x; in operator ()()
110 floats[i * 4 + 1] = value[i].y; in operator ()()
111 floats[i * 4 + 2] = value[i].z; in operator ()()
112 floats[i * 4 + 3] = value[i].w; in operator ()()
115 floats.size(), floats.data()); in operator ()()
/external/deqp/modules/gles3/scripts/
Dgen-invalid-implicit-conversions.py98 floats = ['float', 'vec2', 'vec3', 'vec4'] variable
103 caseFpInt = createCase(op, floats, sintegers)
105 caseFpUint = createCase(op, floats, uintegers)
/external/angle/src/tests/gl_tests/
DUniformTest.cpp97 std::vector<GLfloat> floats(2, 0); in TEST_P() local
98 glGetUniformfv(program, uniformLocation, floats.data()); in TEST_P()
100 ASSERT_EQ(floats, expected); in TEST_P()
121 std::vector<GLfloat> floats(3, 0); in TEST_P() local
122 glGetUniformfv(program, uniformLocation, floats.data()); in TEST_P()
124 ASSERT_EQ(floats, expected); in TEST_P()
145 std::vector<GLfloat> floats(4, 0); in TEST_P() local
146 glGetUniformfv(program, uniformLocation, floats.data()); in TEST_P()
148 ASSERT_EQ(floats, expected); in TEST_P()
169 std::vector<GLfloat> floats(4, 0); in TEST_P() local
[all …]
/external/XNNPACK/src/f32-gemm/gen/
D1x8-minmax-aarch64-neonfma-cortex-a57.S48 # Is there at least 8 floats (32 bytes) for prologue + epilogue?
65 # Main loop - 8 floats of A (32 bytes)
128 # Is there a remainder?- 4 floats of A (16 bytes)
130 # Is there a remainder?- 2 floats of A (8 bytes)
132 # Is there a remainder?- 1 floats of A (4 bytes)
159 # Remainder- 4 floats of A (16 bytes)
176 # Remainder- 2 floats of A (8 bytes)
D1x8-minmax-aarch64-neonfma-cortex-a75.S52 # Is there at least 8 floats (32 bytes) for prologue + epilogue?
69 # Main loop - 8 floats of A (32 bytes)
133 # Is there a remainder?- 4 floats of A (16 bytes)
135 # Is there a remainder?- 2 floats of A (8 bytes)
137 # Is there a remainder?- 1 floats of A (4 bytes)
164 # Remainder- 4 floats of A (16 bytes)
181 # Remainder- 2 floats of A (8 bytes)
/external/XNNPACK/src/f32-gemm/gen-inc/
D1x8inc-minmax-aarch64-neonfma-cortex-a57.S51 # Is there at least 8 floats (32 bytes) for prologue + epilogue?
68 # Main loop - 8 floats of A (32 bytes)
131 # Is there a remainder?- 4 floats of A (16 bytes)
133 # Is there a remainder?- 2 floats of A (8 bytes)
135 # Is there a remainder?- 1 floats of A (4 bytes)
162 # Remainder- 4 floats of A (16 bytes)
179 # Remainder- 2 floats of A (8 bytes)
/external/tensorflow/tensorflow/tools/docs/
Dtf_doctest_lib.py94 floats = []
99 floats.append(float(part))
101 return texts, np.array(floats)
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_FakeQuantWithMinMaxVarsPerChannel.pbtxt3 summary: "Fake-quantize the \'inputs\' tensor of type float via per-channel floats"
6 shapes: `[d]`, `[b, d]` `[b, h, w, d]` via per-channel floats `min` and `max`
14 when it is true) and then de-quantized and output as floats in `[min; max]`

12345678910>>...23