Home
last modified time | relevance | path

Searched refs:scalar (Results 1 – 25 of 2078) sorted by relevance

12345678910>>...84

/external/swiftshader/third_party/llvm-7.0/llvm/unittests/CodeGen/GlobalISel/
DLegalizerInfoTest.cpp56 L.setAction({Op, 0, LLT::scalar(Size)}, Legal); in TEST()
65 ASSERT_EQ(L.getAction({opcode, {LLT::scalar(8)}}), in TEST()
66 LegalizeActionStep(WidenScalar, 0, LLT::scalar(32))); in TEST()
67 ASSERT_EQ(L.getAction({opcode, {LLT::scalar(16)}}), in TEST()
68 LegalizeActionStep(WidenScalar, 0, LLT::scalar(32))); in TEST()
69 ASSERT_EQ(L.getAction({opcode, {LLT::scalar(32)}}), in TEST()
71 ASSERT_EQ(L.getAction({opcode, {LLT::scalar(64)}}), in TEST()
75 ASSERT_EQ(L.getAction({opcode, {LLT::scalar(128)}}), in TEST()
76 LegalizeActionStep(NarrowScalar, 0, LLT::scalar(64))); in TEST()
78 ASSERT_EQ(L.getAction({opcode, {LLT::scalar(1)}}), in TEST()
[all …]
/external/llvm/test/CodeGen/SystemZ/
Dvec-perm-03.ll1 ; Test replications of a scalar memory value, represented as splats.
10 %scalar = load i8, i8 *%ptr
11 %val = insertelement <16 x i8> undef, i8 %scalar, i32 0
23 %scalar = load i8, i8 *%ptr
24 %val = insertelement <16 x i8> undef, i8 %scalar, i32 0
37 %scalar = load i8, i8 *%ptr
38 %val = insertelement <16 x i8> undef, i8 %scalar, i32 0
49 %scalar = load i16, i16 *%ptr
50 %val = insertelement <8 x i16> undef, i16 %scalar, i32 0
62 %scalar = load i16, i16 *%ptr
[all …]
Dvec-perm-02.ll1 ; Test replications of a scalar register value, represented as splats.
6 define <16 x i8> @f1(i8 %scalar) {
11 %val = insertelement <16 x i8> undef, i8 %scalar, i32 0
18 define <16 x i8> @f2(i8 %scalar) {
23 %val = insertelement <16 x i8> undef, i8 %scalar, i32 15
34 define <16 x i8> @f3(i8 %scalar) {
39 %val = insertelement <16 x i8> undef, i8 %scalar, i32 4
49 define <8 x i16> @f4(i16 %scalar) {
54 %val = insertelement <8 x i16> undef, i16 %scalar, i32 0
61 define <8 x i16> @f5(i16 %scalar) {
[all …]
Dvec-round-01.ll70 %scalar = extractelement <2 x double> %val, i32 0
71 %res = call double @llvm.rint.f64(double %scalar)
79 %scalar = extractelement <2 x double> %val, i32 0
80 %res = call double @llvm.nearbyint.f64(double %scalar)
88 %scalar = extractelement <2 x double> %val, i32 0
89 %res = call double @llvm.floor.f64(double %scalar)
97 %scalar = extractelement <2 x double> %val, i32 0
98 %res = call double @llvm.ceil.f64(double %scalar)
106 %scalar = extractelement <2 x double> %val, i32 0
107 %res = call double @llvm.trunc.f64(double %scalar)
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/SystemZ/
Dvec-perm-03.ll1 ; Test replications of a scalar memory value, represented as splats.
10 %scalar = load i8, i8 *%ptr
11 %val = insertelement <16 x i8> undef, i8 %scalar, i32 0
23 %scalar = load i8, i8 *%ptr
24 %val = insertelement <16 x i8> undef, i8 %scalar, i32 0
37 %scalar = load i8, i8 *%ptr
38 %val = insertelement <16 x i8> undef, i8 %scalar, i32 0
49 %scalar = load i16, i16 *%ptr
50 %val = insertelement <8 x i16> undef, i16 %scalar, i32 0
62 %scalar = load i16, i16 *%ptr
[all …]
Dvec-perm-02.ll1 ; Test replications of a scalar register value, represented as splats.
6 define <16 x i8> @f1(i8 %scalar) {
11 %val = insertelement <16 x i8> undef, i8 %scalar, i32 0
18 define <16 x i8> @f2(i8 %scalar) {
23 %val = insertelement <16 x i8> undef, i8 %scalar, i32 15
34 define <16 x i8> @f3(i8 %scalar) {
39 %val = insertelement <16 x i8> undef, i8 %scalar, i32 4
49 define <8 x i16> @f4(i16 %scalar) {
54 %val = insertelement <8 x i16> undef, i16 %scalar, i32 0
61 define <8 x i16> @f5(i16 %scalar) {
[all …]
Dvec-round-02.ll70 %scalar = extractelement <4 x float> %val, i32 0
71 %res = call float @llvm.rint.f32(float %scalar)
79 %scalar = extractelement <4 x float> %val, i32 0
80 %res = call float @llvm.nearbyint.f32(float %scalar)
88 %scalar = extractelement <4 x float> %val, i32 0
89 %res = call float @llvm.floor.f32(float %scalar)
97 %scalar = extractelement <4 x float> %val, i32 0
98 %res = call float @llvm.ceil.f32(float %scalar)
106 %scalar = extractelement <4 x float> %val, i32 0
107 %res = call float @llvm.trunc.f32(float %scalar)
[all …]
Dvec-round-01.ll70 %scalar = extractelement <2 x double> %val, i32 0
71 %res = call double @llvm.rint.f64(double %scalar)
79 %scalar = extractelement <2 x double> %val, i32 0
80 %res = call double @llvm.nearbyint.f64(double %scalar)
88 %scalar = extractelement <2 x double> %val, i32 0
89 %res = call double @llvm.floor.f64(double %scalar)
97 %scalar = extractelement <2 x double> %val, i32 0
98 %res = call double @llvm.ceil.f64(double %scalar)
106 %scalar = extractelement <2 x double> %val, i32 0
107 %res = call double @llvm.trunc.f64(double %scalar)
[all …]
/external/boringssl/src/crypto/curve25519/
Dx25519_test.cc93 uint8_t scalar[32] = {9}, point[32] = {9}, out[32]; in TEST() local
96 EXPECT_TRUE(X25519(out, scalar, point)); in TEST()
97 OPENSSL_memcpy(point, scalar, sizeof(point)); in TEST()
98 OPENSSL_memcpy(scalar, out, sizeof(scalar)); in TEST()
107 EXPECT_EQ(Bytes(kExpected), Bytes(scalar)); in TEST()
112 uint8_t scalar[32] = {9}, point[32] = {9}, out[32]; in TEST() local
115 EXPECT_TRUE(X25519(out, scalar, point)); in TEST()
116 OPENSSL_memcpy(point, scalar, sizeof(point)); in TEST()
117 OPENSSL_memcpy(scalar, out, sizeof(scalar)); in TEST()
126 EXPECT_EQ(Bytes(kExpected), Bytes(scalar)); in TEST()
/external/tensorflow/tensorflow/python/data/util/
Dsparse_test.py90 "types": tensor_shape.scalar(),
92 "expected": tensor_shape.scalar()
95 "types": tensor_shape.scalar(),
100 "types": (tensor_shape.scalar()),
102 "expected": (tensor_shape.scalar())
105 "types": (tensor_shape.scalar()),
110 "types": (tensor_shape.scalar(), ()),
112 "expected": (tensor_shape.scalar(), ())
115 "types": ((), tensor_shape.scalar()),
117 "expected": ((), tensor_shape.scalar())
[all …]
/external/eigen/bench/spbench/
Dtest_sparseLU.cpp20 typedef double scalar; in main() typedef
21 SparseMatrix<scalar, ColMajor> A; in main()
22 typedef SparseMatrix<scalar, ColMajor>::Index Index; in main()
23 typedef Matrix<scalar, Dynamic, Dynamic> DenseMatrix; in main()
24 typedef Matrix<scalar, Dynamic, 1> DenseRhs; in main()
25 Matrix<scalar, Dynamic, 1> b, x, tmp; in main()
31 SparseLU<SparseMatrix<scalar, ColMajor>, COLAMDOrdering<int> > solver; in main()
51 SparseMatrix<scalar, ColMajor> temp; in main()
87 Matrix<scalar, Dynamic, 1> tmp2 = b - A*x; in main()
88 scalar tempNorm = tmp2.norm()/b.norm(); in main()
/external/tensorflow/tensorflow/core/kernels/
Dsummary_kernels.cc39 const string logdir = tmp->scalar<string>()(); in Compute()
41 const int32 max_queue = tmp->scalar<int32>()(); in Compute()
43 const int32 flush_millis = tmp->scalar<int32>()(); in Compute()
45 const string filename_suffix = tmp->scalar<string>()(); in Compute()
69 const string db_uri = tmp->scalar<string>()(); in Compute()
71 const string experiment_name = tmp->scalar<string>()(); in Compute()
73 const string run_name = tmp->scalar<string>()(); in Compute()
75 const string user_name = tmp->scalar<string>()(); in Compute()
135 const int64 step = tmp->scalar<int64>()(); in Compute()
137 const string& tag = tmp->scalar<string>()(); in Compute()
[all …]
Dsave_op.cc65 out->scalar<string>()() = strings::Printf( in Compute()
66 "%s-%05d-of-%05d", ctx->input(0).scalar<string>()().c_str(), in Compute()
67 ctx->input(1).scalar<int32>()(), ctx->input(2).scalar<int32>()()); in Compute()
88 out->scalar<string>()() = strings::Printf( in Compute()
89 "%s-\?\?\?\?\?-of-%05d", ctx->input(0).scalar<string>()().c_str(), in Compute()
90 ctx->input(1).scalar<int32>()()); in Compute()
Dquantize_and_dequantize_op_test.cc62 EXPECT_EQ(inputs_[1]->scalar<float>()(), 0.0); in TEST_F()
63 EXPECT_EQ(inputs_[2]->scalar<float>()(), 0.0); in TEST_F()
88 EXPECT_EQ(inputs_[1]->scalar<float>()(), 0.0); in TEST_F()
89 EXPECT_EQ(inputs_[2]->scalar<float>()(), 0.0); in TEST_F()
119 EXPECT_EQ(inputs_[1]->scalar<float>()(), 0.0); in TEST_F()
120 EXPECT_EQ(inputs_[2]->scalar<float>()(), 0.0); in TEST_F()
152 EXPECT_EQ(inputs_[1]->scalar<float>()(), 0.0); in TEST_F()
153 EXPECT_EQ(inputs_[2]->scalar<float>()(), 0.0); in TEST_F()
183 EXPECT_EQ(inputs_[1]->scalar<float>()(), 0.0); in TEST_F()
184 EXPECT_EQ(inputs_[2]->scalar<float>()(), 0.0); in TEST_F()
[all …]
/external/tensorflow/tensorflow/contrib/gan/python/losses/python/
Dlosses_impl.py113 summary.scalar('generator_wass_loss', loss)
167 summary.scalar('discriminator_gen_wass_loss', loss_on_generated)
168 summary.scalar('discriminator_real_wass_loss', loss_on_real)
169 summary.scalar('discriminator_wass_loss', loss)
240 summary.scalar('discriminator_gen_ac_loss', loss_on_generated)
241 summary.scalar('discriminator_real_ac_loss', loss_on_real)
242 summary.scalar('discriminator_ac_loss', loss)
295 summary.scalar('generator_ac_loss', loss)
396 summary.scalar('gradient_penalty_loss', penalty)
465 summary.scalar('discriminator_gen_minimax_loss', loss_on_generated)
[all …]
/external/llvm/test/Transforms/LoopVectorize/AArch64/
Dfirst-order-recurrence.ll24 ; CHECK: scalar.ph:
25 ; CHECK: %scalar.recur.init = phi i32 [ %vector.recur.extract, %middle.block ], [ %pre_load, %ve…
27 ; CHECK: scalar.body:
28 ; CHECK: %scalar.recur = phi i32 [ %scalar.recur.init, %scalar.ph ], [ {{.*}}, %scalar.body ]
47 br label %scalar.body
49 scalar.body:
50 %0 = phi i32 [ %pre_load, %for.preheader ], [ %1, %scalar.body ]
51 %indvars.iv = phi i64 [ 0, %for.preheader ], [ %indvars.iv.next, %scalar.body ]
60 br i1 %exitcond, label %for.exit, label %scalar.body
86 ; CHECK: scalar.ph:
[all …]
/external/snakeyaml/src/test/resources/pyyaml/
Dscalars.events5 - !Scalar { implicit: [true,true], value: 'empty scalar' }
7 - !Scalar { implicit: [true,true], value: 'implicit scalar' }
9 - !Scalar { implicit: [true,true], value: 'quoted scalar' }
11 - !Scalar { implicit: [true,true], value: 'block scalar' }
13 - !Scalar { implicit: [true,true], value: 'empty scalar with tag' }
15 - !Scalar { implicit: [true,true], value: 'implicit scalar with tag' }
17 - !Scalar { implicit: [true,true], value: 'quoted scalar with tag' }
19 - !Scalar { implicit: [true,true], value: 'block scalar with tag' }
/external/tensorflow/tensorflow/core/common_runtime/
Dgraph_runner_test.cc53 ExpectEqual(42.0f, outputs[0].scalar<float>()()); in TEST()
66 p1_data.scalar<float>()() = 1.0f; in TEST()
67 p2_data.scalar<float>()() = 2.0f; in TEST()
80 ExpectEqual(3.0f, outputs[0].scalar<float>()()); in TEST()
92 ExpectEqual(42.0f, outputs[0].scalar<float>()()); in TEST()
93 ExpectEqual(3.14f, outputs[1].scalar<float>()()); in TEST()
104 p1_data.scalar<float>()() = 1.0f; in TEST()
105 p2_data.scalar<float>()() = 2.0f; in TEST()
114 ExpectEqual(3.0f, outputs[0].scalar<float>()()); in TEST()
/external/tensorflow/tensorflow/core/kernels/boosted_trees/
Dresource_ops.cc44 int64 stamp_token = stamp_token_t->scalar<int64>()(); in Compute()
53 tree_ensemble_serialized_t->scalar<string>()(), stamp_token)) { in Compute()
117 output_stamp_token_t->scalar<int64>()() = tree_ensemble_resource->stamp(); in Compute()
118 output_num_trees_t->scalar<int32>()() = num_trees; in Compute()
119 output_num_finalized_trees_t->scalar<int32>()() = num_finalized_trees; in Compute()
120 output_num_attempted_layers_t->scalar<int32>()() = num_attempted_layers; in Compute()
152 output_stamp_token_t->scalar<int64>()() = tree_ensemble_resource->stamp(); in Compute()
156 output_proto_t->scalar<string>()() = in Compute()
181 int64 stamp_token = stamp_token_t->scalar<int64>()(); in Compute()
192 tree_ensemble_serialized_t->scalar<string>()(), stamp_token), in Compute()
/external/tensorflow/tensorflow/contrib/summary/
Dsummary_ops_test.py78 summary_ops.scalar('scalar', 2.0)
94 summary_ops.scalar('scalar', 2.0)
108 summary_ops.scalar('scalar', 2.0)
122 summary_ops.scalar('scalar', 2.0)
136 summary_ops.scalar('scalar', 2.0)
149 summary_ops.scalar('scalar', 2.0, step=step)
160 summary_ops.scalar('scalar', i, step=step)
184 summary_ops.scalar('scalar', 2.0, step=1)
187 summary_ops.scalar('scalar', 2.0, step=2)
198 summary_ops.scalar('scalar', 2.0, step=1)
[all …]
/external/deqp-deps/glslang/Test/baseResults/
Dhlsl.float1.frag.out12 0:2 'scalar' ( global float)
24 0:6 'scalar' ( global float)
30 0:? 'scalar' ( global float)
47 0:2 'scalar' ( global float)
59 0:6 'scalar' ( global float)
65 0:? 'scalar' ( global float)
82 Name 16 "scalar"
91 16(scalar): 13(ptr) Variable Private
96 Store 16(scalar) 17
104 19: 6(float) Load 16(scalar)
/external/swiftshader/third_party/llvm-7.0/llvm/test/Verifier/
Dtbaa.ll25 ; CHECK: Access type node must be a valid scalar type
31 ; CHECK: Access type node must be a valid scalar type
37 ; CHECK: Access type node must be a valid scalar type
60 ; CHECK: Offset not zero at the point of scalar access
63 ; CHECK: Offset not zero at the point of scalar access
72 ; CHECK: Access type node must be a valid scalar type
75 ; CHECK: Access type node must be a valid scalar type
78 ; CHECK: Access type node must be a valid scalar type
110 !1 = !{!"scalar-a", !0}
111 !2 = !{!"scalar-b", !0}
[all …]
/external/clang/test/OpenMP/
Dtarget_defaultmap_messages.cpp20 …#pragma omp target defaultmap (tofrom scalar) // expected-warning {{missing ':' after defaultmap m… in tmain()
24 …#pragma omp target defaultmap (scalar: // expected-error {{expected ')'}} expected-error {{expecte… in tmain()
26 …#pragma omp target defaultmap (tofrom, scalar // expected-error {{expected ')'}} expected-warning … in tmain()
45 …#pragma omp target defaultmap (tofrom scalar) // expected-warning {{missing ':' after defaultmap m… in main()
49 …#pragma omp target defaultmap (scalar: // expected-error {{expected ')'}} expected-error {{expecte… in main()
51 …#pragma omp target defaultmap (tofrom, scalar // expected-error {{expected ')'}} expected-warning … in main()
/external/tensorflow/tensorflow/java/src/test/java/org/tensorflow/
DShapeTest.java36 public void scalar() { in scalar() method in ShapeTest
37 assertEquals(0, Shape.scalar().numDimensions()); in scalar()
38 assertEquals("[]", Shape.scalar().toString()); in scalar()
84 assertEquals(Shape.scalar(), Shape.scalar()); in equalsWorksCorrectly()
99 assertEquals(Shape.scalar().hashCode(), Shape.scalar().hashCode()); in hashCodeIsAsExpected()
/external/tensorflow/tensorflow/contrib/boosted_trees/kernels/
Dmodel_ops.cc41 int64 stamp_token = stamp_token_t->scalar<int64>()(); in Compute()
48 if (!result->InitFromSerialized(tree_ensemble_config_t->scalar<string>()(), in Compute()
80 output_stamp_token_t->scalar<int64>()() = ensemble_resource->stamp(); in Compute()
99 output_stamp_token_t->scalar<int64>()() = ensemble_resource->stamp(); in Compute()
103 output_config_t->scalar<string>()() = in Compute()
124 int64 stamp_token = stamp_token_t->scalar<int64>()(); in Compute()
135 tree_ensemble_config_t->scalar<string>()(), stamp_token), in Compute()
159 int64 stamp_token = stamp_token_t->scalar<int64>()(); in Compute()
177 output_num_used_handlers_t->scalar<int64>()() = used_handlers.size(); in Compute()

12345678910>>...84