Home
last modified time | relevance | path

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

12345

/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/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()
123 seed.flat<int64>().setConstant(12345); in SetUpKMC2Initialization()
180 top.flat<int64>().setConstant(k); in SetUpNearestNeighbors()
Dsparse_to_dense_op_test.cc126 expected.flat<float>().setConstant(-2); in TEST_F()
148 expected.flat<float>().setConstant(-2); in TEST_F()
170 expected.flat<float>().setConstant(-2); in TEST_F()
192 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()
Dstring_split_op_test.cc70 delim.flat<tstring>().setConstant(" "); in SetupStringSplitGraph()
101 sep.flat<tstring>().setConstant(" "); in SetupStringSplitV2Graph()
Drequantize.cc91 output_min->flat<float>().setConstant(requested_output_min_float); in Compute()
92 output_max->flat<float>().setConstant(requested_output_max_float); in Compute()
Dsubstr_op_test.cc139 position.flat<int32>().setConstant(pos); in SetupSubstrGraph()
141 length.flat<int32>().setConstant(len); in SetupSubstrGraph()
Dregex_replace_op_test.cc74 pattern.flat<tstring>().setConstant(input_pattern); in SetupRegexReplaceGraph()
76 rewrite.flat<tstring>().setConstant(input_rewrite); in SetupRegexReplaceGraph()
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()
Drandom_binomial_op_test.cc34 counts_t.flat<float>().setConstant(count); in RandomBinomialGraph()
36 probs_t.flat<float>().setConstant(prob); in RandomBinomialGraph()
Dgenerate_vocab_remapping_op.cc124 default_token_vec.setConstant("" /* NOT_FOUND_TOKEN */); in Compute()
131 default_id_vec.setConstant(-1 /* NOT_FOUND_ID */); in Compute()
Dsparse_to_dense_op.cc122 sparse_values_b_holder->vec<T>().setConstant(sparse_values.scalar<T>()()); in Compute()
139 output->flat<T>().setConstant(default_value.scalar<T>()()); in Compute()
Dsparse_dense_binary_op_shared_test.cc109 dense_flat.setConstant(1.); in TEST_F()
137 dense_flat.setConstant(1.); in TEST_F()
164 dense_flat.setConstant(1.); in TEST_F()
Dquantized_instance_norm_test.cc138 input = input.setConstant(0); in TestZeroInput()
147 input = input.setConstant(255); in TestMaxInput()
/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/eigen/Eigen/src/MetisSupport/
DMetisSupport.h38 visited.setConstant(-1); in get_symmetrized_graph()
69 visited.setConstant(-1); in get_symmetrized_graph()
/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<tstring>().setConstant("hello"); in TEST()
163 x.flat<tstring>().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/doc/snippets/
DMatrix_setConstant_int.cpp2 v.setConstant(3, 5);
DMatrix_setConstant_int_int.cpp2 m.setConstant(3, 3, 5);
/external/eigen/Eigen/src/SparseCore/
DSparseColEtree.h74 firstRowElt.setConstant(nc);
189 first_kid.setConstant(-1); in treePostorder()
/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/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()
DSparseLU_relax_snode.h52 relax_end.setConstant(emptyIdxLU); in relax_snode()

12345