Home
last modified time | relevance | path

Searched refs:pmf (Results 1 – 25 of 48) sorted by relevance

12

/external/tensorflow/tensorflow/python/kernel_tests/distributions/
Ddirichlet_multinomial_test.py119 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 …]
Dmultinomial_test.py138 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/
Dpmf_to_cdf_op_test.cc70 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 …]
Dpmf_to_cdf_op.cc62 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/
Dbuiltin-ptrtomember-overload-1.cpp25 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()
Doverloaded-builtin-operators.cpp31 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()
Dbuiltin-ptrtomember-overload.cpp15 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()
Dbuiltin-ptrtomember-ambig.cpp19 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()
Dnullptr.cpp26 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/
Dbinomial_test.py124 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 …]
Dgeometric_test.py71 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 …]
Dpoisson_test.py66 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))
Dnegative_binomial_test.py135 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/
Dp6-0x.cpp15 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/
Dmember-function-pointers.cpp92 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()
Dptr-to-member-function.cpp49 bool (A::*pmf)(int*) const; member
51 B1(int i) : pmf(&A::foo), im(i) { in B1()
52 ((A*)this->*pmf)(&im); in B1()
Dreference-cast.cpp105 typedef int (X::*pmf)(int); typedef
108 pmf get_pointer_to_member_function();
Dnullptr.cpp19 int (X::*pmf)(int) = get_nullptr(); in g() local
/external/clang/test/SemaObjCXX/
Darc-memfunc.mm13 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/
Dp1-11.cpp46 template<int (X::*pmf)(int)> struct PMF { // expected-note 2 {{template parameter is declared here}}
47 PMF<pmf> *pmf2;
/external/clang/test/CodeGenObjCXX/
Darc.mm139 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/
Dwpa_supplicant_template.conf6 pmf=1
/external/clang/test/CXX/dcl.decl/
Dp4-0x.cpp9 void (X::*pmf)() & = &X::f; variable
/external/clang/test/CXX/temp/temp.param/
Dp4.cpp15 template<float (X::*pmf)(float, int)> struct A9;
/external/wpa_supplicant_8/src/ap/
Dgas_query_ap.c473 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()

12