/external/tensorflow/tensorflow/python/kernel_tests/distributions/ |
D | dirichlet_multinomial_test.py | 119 pmf = dist.prob(counts) 120 self.assertAllClose(1 / 3., self.evaluate(pmf)) 121 self.assertEqual((), pmf.get_shape()) 131 pmf = dist.prob(counts) 132 self.assertAllClose(1 / 7., self.evaluate(pmf)) 133 self.assertEqual((), pmf.get_shape()) 143 pmf = dist.prob(counts) 144 self.assertAllClose([[1 / 7., 1 / 7., 1 / 7.]] * 4, self.evaluate(pmf)) 145 self.assertEqual((4, 3), pmf.get_shape()) 154 pmf = dist.prob(counts) [all …]
|
D | multinomial_test.py | 138 pmf = multinomial.Multinomial(total_count=1., probs=p).prob(counts) 139 self.assertAllClose(0.5, self.evaluate(pmf)) 140 self.assertEqual((), pmf.get_shape()) 148 pmf = dist.prob(counts) 150 self.assertAllClose(81. / 10000, self.evaluate(pmf)) 151 self.assertEqual((), pmf.get_shape()) 157 pmf = multinomial.Multinomial(total_count=1., probs=p).prob(counts) 158 self.assertAllClose([0.1, 0.9], self.evaluate(pmf)) 159 self.assertEqual((2), pmf.get_shape()) 165 pmf = multinomial.Multinomial(total_count=1., probs=p).prob(counts) [all …]
|
/external/tensorflow/tensorflow/contrib/coder/kernels/ |
D | pmf_to_cdf_op_test.cc | 70 auto pmf = pmf_tensor.flat_inner_dims<float, 2>(); in Verify() local 72 EXPECT_EQ(pmf.dimension(1) + 1, cdf.dimension(1)); in Verify() 75 for (int i = 0; i < pmf.dimension(0); ++i) { in Verify() 91 Tensor pmf(DT_FLOAT, {1, 10, 1, 32}); in TEST_F() local 92 auto matrix = pmf.flat_inner_dims<float, 2>(); in TEST_F() 101 pmf.flat<float>() = pmf.flat<float>() * 0.85f; in TEST_F() 104 SetupOp(kPrecision, &pmf); in TEST_F() 107 Verify(kPrecision, pmf, *GetOutput(0)); in TEST_F() 111 Tensor pmf(DT_FLOAT, {10, 1, 1, 100}); in TEST_F() local 112 auto matrix = pmf.flat_inner_dims<float, 2>(); in TEST_F() [all …]
|
D | pmf_to_cdf_op.cc | 62 auto pmf = pmf_tensor.flat_inner_dims<float, 2>(); in Compute() local 64 CHECK_EQ(pmf.dimension(0), cdf.dimension(0)); in Compute() 65 CHECK_EQ(pmf.dimension(1) + 1, cdf.dimension(1)); in Compute() 67 const double n = pmf.dimension(1); in Compute() 72 pmf.dimension(0), cost_per_unit, in Compute() 73 [this, pmf, &cdf](int64 start, int64 limit) { in Compute() 74 const gtl::ArraySlice<float>::size_type pmf_size = pmf.dimension(1); in Compute() 77 PerShard({&pmf(i, 0), pmf_size}, {&cdf(i, 1), pmf_size}); in Compute() 138 void PerShard(gtl::ArraySlice<float> pmf, in PerShard() argument 140 CHECK_EQ(pmf.size(), cdf.size()); in PerShard() [all …]
|
/external/clang/test/SemaCXX/ |
D | builtin-ptrtomember-overload-1.cpp | 25 void foo(C c, int A::* pmf) { in foo() argument 26 int i = c->*pmf; in foo() 37 void foo1(C1 c1, int A::* pmf) { in foo1() argument 38 int i = c1->*pmf; in foo1() 39 c1->*pmf = 10; in foo1() 42 void foo1(C1 c1, int E::* pmf) { in foo1() argument 43 int i = c1->*pmf; // expected-error {{use of overloaded operator '->*' is ambiguous}} \ in foo1()
|
D | overloaded-builtin-operators.cpp | 31 typedef void (X::*pmf)(); typedef 33 operator pmf(); 40 void f(Short s, Long l, Enum1 e1, Enum2 e2, Xpmf pmf) { in f() argument 54 (void)(pmf == &X::f); in f() 55 (void)(pmf == 0); in f() 80 operator pmf&(); 102 pmf &pmr = (pmf_ref = &X::f); // expected-error{{no viable overloaded '='}} in g() 103 pmf pmr2; in g()
|
D | builtin-ptrtomember-overload.cpp | 15 void foo(C c, B b, int A::* pmf) { in foo() argument 16 int j = c->*pmf; in foo() 17 int i = b->*pmf; in foo()
|
D | builtin-ptrtomember-ambig.cpp | 19 void foo(C c, int A::* pmf) { in foo() argument 21 int i = c->*pmf; // expected-error {{use of overloaded operator '->*' is ambiguous}} \ in foo()
|
D | nullptr.cpp | 26 void (A::*pmf)() = nullptr; in f() local 27 pmf = null; in f() 175 template<int (*fp)(int), int* p, int A::* pmd, int (A::*pmf)(int)>
|
/external/tensorflow/tensorflow/contrib/distributions/python/kernel_tests/ |
D | binomial_test.py | 124 pmf = binom.prob(counts) 126 self.assertAllClose(0.5, pmf.eval()) 128 self.assertEqual((), pmf.get_shape()) 137 pmf = binom.prob(counts) 139 self.assertAllClose(stats.binom.pmf(counts, n=5., p=p), pmf.eval()) 141 self.assertEqual((), pmf.get_shape()) 149 pmf = binom.prob(counts) 151 self.assertAllClose(stats.binom.pmf(counts, n=3., p=p), pmf.eval()) 153 self.assertEqual((1, 2), pmf.get_shape()) 161 pmf = binom.prob(counts) [all …]
|
D | geometric_test.py | 71 pmf = geom.prob(x) 72 self.assertEqual([6,], pmf.get_shape()) 73 self.assertAllClose(np.exp(expected_log_prob), pmf.eval()) 94 pmf = geom.prob(x) 95 self.assertEqual([6,], pmf.get_shape()) 110 pmf = geom.prob(x) 111 pmf_values = pmf.eval() 112 self.assertEqual([6, 3], pmf.get_shape()) 230 pmf = geom.prob(x) 231 self.assertEqual([7,], pmf.get_shape()) [all …]
|
D | poisson_test.py | 66 pmf = poisson.prob(x) 67 self.assertEqual(pmf.get_shape(), (6,)) 68 self.assertAllClose(pmf.eval(), stats.poisson.pmf(x, lam_v)) 90 pmf = poisson.prob(x) 91 self.assertEqual(pmf.get_shape(), (6,)) 105 pmf = poisson.prob(x) 106 self.assertEqual(pmf.get_shape(), (6, 3)) 107 self.assertAllClose(pmf.eval(), stats.poisson.pmf(x, lam_v))
|
D | negative_binomial_test.py | 135 pmf = negbinom.prob(x) 136 self.assertEqual([6], pmf.get_shape()) 137 self.assertAllClose(np.exp(expected_log_pmf), pmf.eval()) 161 pmf = negbinom.prob(x) 162 self.assertEqual([6], pmf.get_shape()) 180 pmf = negbinom.prob(x) 181 pmf_values = pmf.eval() 182 self.assertEqual([6, 3], pmf.get_shape())
|
/external/clang/test/CXX/expr/expr.mptr.oper/ |
D | p6-0x.cpp | 15 void test(X *xp, int (X::*pmf)(int), int (X::*l_pmf)(int) &, in test() 18 (lvalue<X>().*pmf)(17); in test() 19 (xvalue<X>().*pmf)(17); in test() 20 (prvalue<X>().*pmf)(17); in test() 21 (xp->*pmf)(17); in test()
|
/external/clang/test/CodeGenCXX/ |
D | member-function-pointers.cpp | 92 bool (A::*pmf)(int*) const; member 95 B1() : pmf(&A::foo), pa(&a) {} in B1() 96 bool operator()() const { return (pa->*pmf)(new int); } in operator ()() 213 typedef int (X::*pmf)(int); typedef 216 pmf f() { in f() 218 return pmf(); in f()
|
D | ptr-to-member-function.cpp | 49 bool (A::*pmf)(int*) const; member 51 B1(int i) : pmf(&A::foo), im(i) { in B1() 52 ((A*)this->*pmf)(&im); in B1()
|
D | reference-cast.cpp | 105 typedef int (X::*pmf)(int); typedef 108 pmf get_pointer_to_member_function();
|
D | nullptr.cpp | 19 int (X::*pmf)(int) = get_nullptr(); in g() local
|
/external/clang/test/SemaObjCXX/ |
D | arc-memfunc.mm | 13 id (X0::*pmf)() __attribute__((ns_returns_retained)) = &X0::makeObject2; 14 (x0.*pmf)(); 15 (x0p->*pmf)();
|
/external/clang/test/CXX/temp/temp.arg/temp.arg.nontype/ |
D | p1-11.cpp | 46 template<int (X::*pmf)(int)> struct PMF { // expected-note 2 {{template parameter is declared here}} 47 PMF<pmf> *pmf2;
|
/external/clang/test/CodeGenObjCXX/ |
D | arc.mm | 139 id (Test35_Helper::*pmf)() __attribute__((ns_returns_retained)) 144 id obj4 = (x0.*pmf)(); 148 id obj5 = (x0p->*pmf)(); 177 id (Test35_Helper::*pmf)() = &Test35_Helper::makeObject4; 181 id obj4 = (x0.*pmf)(); 185 id obj5 = (x0p->*pmf)();
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | wpa_supplicant_template.conf | 6 pmf=1
|
/external/clang/test/CXX/dcl.decl/ |
D | p4-0x.cpp | 9 void (X::*pmf)() & = &X::f; variable
|
/external/clang/test/CXX/temp/temp.param/ |
D | p4.cpp | 15 template<float (X::*pmf)(float, int)> struct A9;
|
/external/wpa_supplicant_8/src/ap/ |
D | gas_query_ap.c | 473 int prot, pmf; in gas_query_ap_rx() local 488 pmf = pmf_in_use(gas->hapd, sa); in gas_query_ap_rx() 489 if (prot && !pmf) { in gas_query_ap_rx() 493 if (!prot && pmf) { in gas_query_ap_rx()
|