Home
last modified time | relevance | path

Searched refs:setConstant (Results 1 – 25 of 106) sorted by relevance

12345

/external/tensorflow/tensorflow/core/kernels/
Dparameterized_truncated_normal_op_test.cc34 means_t.flat<float>().setConstant(0.0); in PTruncatedNormal()
36 stdevs_t.flat<float>().setConstant(1.0); in PTruncatedNormal()
41 maxvals_t.flat<float>().setConstant(5.0); in PTruncatedNormal()
62 means_t.flat<float>().setConstant(0.0); in PTruncatedNormal2SD()
64 stdevs_t.flat<float>().setConstant(1.0); in PTruncatedNormal2SD()
66 minvals_t.flat<float>().setConstant(-2.0); in PTruncatedNormal2SD()
68 maxvals_t.flat<float>().setConstant(2.0); in PTruncatedNormal2SD()
89 means_t.flat<float>().setConstant(0.0); in PTruncatedNormalOneTail()
91 stdevs_t.flat<float>().setConstant(1.0); in PTruncatedNormalOneTail()
93 minvals_t.flat<float>().setConstant(2.0); in PTruncatedNormalOneTail()
[all …]
Dclustering_ops_test.cc59 sample_size.flat<int64>().setConstant(num_to_sample); in SetUpKmeansPlusPlusInitialization()
60 seed.flat<int64>().setConstant(12345); in SetUpKmeansPlusPlusInitialization()
61 num_retries_per_sample.flat<int64>().setConstant(retries_per_sample); in SetUpKmeansPlusPlusInitialization()
124 seed.flat<int64>().setConstant(12345); in SetUpKMC2Initialization()
183 top.flat<int64>().setConstant(k); in SetUpNearestNeighbors()
Dsparse_to_dense_op_test.cc124 expected.flat<float>().setConstant(-2); in TEST_F()
146 expected.flat<float>().setConstant(-2); in TEST_F()
168 expected.flat<float>().setConstant(-2); in TEST_F()
190 expected.flat<float>().setConstant(-2); in TEST_F()
Drequantization_range_op.cc68 output_min->flat<float>().setConstant(used_min_float); in Compute()
69 output_max->flat<float>().setConstant(used_max_float); in Compute()
Drequantize.cc92 output_min->flat<float>().setConstant(requested_output_min_float); in Compute()
93 output_max->flat<float>().setConstant(requested_output_max_float); in Compute()
Dstring_split_op_test.cc70 delim.flat<string>().setConstant(" "); in SetupStringSplitGraph()
101 sep.flat<string>().setConstant(" "); in SetupStringSplitV2Graph()
Dsubstr_op_test.cc139 position.flat<int32>().setConstant(pos); in SetupSubstrGraph()
141 length.flat<int32>().setConstant(len); in SetupSubstrGraph()
Dquantize_down_and_shrink_range.cc96 output_min->flat<float>().setConstant(actual_min_float); in Compute()
97 output_max->flat<float>().setConstant(actual_max_float); in Compute()
Dregex_replace_op_test.cc74 pattern.flat<string>().setConstant(input_pattern); in SetupRegexReplaceGraph()
76 rewrite.flat<string>().setConstant(input_rewrite); in SetupRegexReplaceGraph()
Dsparse_to_dense_op.cc114 sparse_values_b.vec<T>().setConstant(sparse_values.scalar<T>()()); in Compute()
131 output->flat<T>().setConstant(default_value.scalar<T>()()); in Compute()
Dserialize_sparse_op.cc211 serialized_sparse_t.template chip<1>(0).setConstant(serialized_indices); in Compute()
217 serialized_sparse_t.template chip<1>(1).setConstant(serialized_values); in Compute()
224 serialized_sparse_t.template chip<1>(2).setConstant(serialized_shape); in Compute()
Dsparse_dense_binary_op_shared_test.cc108 dense_flat.setConstant(1.); in TEST_F()
136 dense_flat.setConstant(1.); in TEST_F()
163 dense_flat.setConstant(1.); in TEST_F()
Dgenerate_vocab_remapping_op.cc122 default_token_vec.setConstant("" /* NOT_FOUND_TOKEN */); in Compute()
129 default_id_vec.setConstant(-1 /* NOT_FOUND_ID */); in Compute()
/external/eigen/test/
Dbandmatrix.cpp28 m.diagonal().setConstant(123); in bandmatrix()
29 dm1.diagonal().setConstant(123); in bandmatrix()
32 m.diagonal(i).setConstant(static_cast<RealScalar>(i)); in bandmatrix()
33 dm1.diagonal(i).setConstant(static_cast<RealScalar>(i)); in bandmatrix()
37 m.diagonal(-i).setConstant(-static_cast<RealScalar>(i)); in bandmatrix()
38 dm1.diagonal(-i).setConstant(-static_cast<RealScalar>(i)); in bandmatrix()
45 m.col(i).setConstant(static_cast<RealScalar>(i+1)); in bandmatrix()
46 dm1.col(i).setConstant(static_cast<RealScalar>(i+1)); in bandmatrix()
/external/skia/modules/particles/include/
DSkCurve.h56 void setConstant(SkScalar c) { in setConstant() function
72 fSegments.push_back().setConstant(c);
103 void setConstant(SkColor4f c) { in setConstant() function
118 fSegments.push_back().setConstant(c);
/external/eigen/Eigen/src/Core/
DCwiseNullaryOp.h317 setConstant(val);
325 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived& DenseBase<Derived>::setConstant(const Scalar& val)
341 PlainObjectBase<Derived>::setConstant(Index size, const Scalar& val)
344 return setConstant(val);
360 PlainObjectBase<Derived>::setConstant(Index rows, Index cols, const Scalar& val)
363 return setConstant(val);
501 return setConstant(Scalar(0));
518 return setConstant(Scalar(0));
536 return setConstant(Scalar(0));
627 return setConstant(Scalar(1));
[all …]
/external/eigen/bench/
Dvdw_new.cpp46 interactions1.setConstant(2.4); in main()
47 interactions2.setConstant(rab); in main()
/external/tensorflow/tensorflow/core/util/ctc/
Dctc_loss_calculator.cc29 log_alpha->setConstant(kLogZero); in CalculateForwardVariables()
85 log_beta->setConstant(kLogZero); in CalculateBackwardVariables()
155 prob_sum.setConstant(kLogZero); in CalculateGradient()
/external/tensorflow/tensorflow/core/framework/
Dtensor_util_test.cc124 x.flat<int32>().setConstant(1); in TEST()
133 x.flat<int32>().setConstant(2); in TEST()
154 x.flat<string>().setConstant("hello"); in TEST()
163 x.flat<string>().setConstant("goodbye"); in TEST()
184 x.flat<Variant>().setConstant(Tensor(42.0f)); in TEST()
193 x.flat<Variant>().setConstant(Tensor("foo")); in TEST()
/external/eigen/Eigen/src/MetisSupport/
DMetisSupport.h38 visited.setConstant(-1); in get_symmetrized_graph()
69 visited.setConstant(-1); in get_symmetrized_graph()
/external/eigen/unsupported/test/
DNonLinearOptimization.cpp174 x.setConstant(n, 1.); in testLmder1()
203 x.setConstant(n, 1.); in testLmder()
288 x.setConstant(n, -1.); in testHybrj1()
320 x.setConstant(n, -1.); in testHybrj()
326 solver.diag.setConstant(n, 1.); in testHybrj()
377 x.setConstant(n, -1.); in testHybrd1()
404 x.setConstant(n, -1.); in testHybrd()
411 solver.diag.setConstant(n, 1.); in testHybrd()
479 x.setConstant(n, 1.); in testLmstr1()
508 x.setConstant(n, 1.); in testLmstr()
[all …]
/external/eigen/doc/snippets/
DMatrix_setConstant_int.cpp2 v.setConstant(3, 5);
DMatrix_setConstant_int_int.cpp2 m.setConstant(3, 3, 5);
/external/eigen/Eigen/src/SparseLU/
DSparseLU.h558 repfnz.setConstant(-1); in factorize()
559 panel_lsub.setConstant(-1); in factorize()
579 m_perm_r.indices().setConstant(-1); in factorize()
580 marker.setConstant(-1); in factorize()
583 m_glu.supno(0) = emptyIdxLU; m_glu.xsup.setConstant(0); in factorize()
/external/eigen/Eigen/src/SparseCore/
DSparseColEtree.h74 firstRowElt.setConstant(nc);
189 first_kid.setConstant(-1); in treePostorder()

12345