Home
last modified time | relevance | path

Searched full:eval (Results 1 – 25 of 2695) sorted by relevance

12345678910>>...108

/external/python/cpython3/Lib/test/
Dtest_string_literals.py22 exec()/eval(), which uses a different code path.
82 self.assertEqual(eval(""" 'x' """), 'x')
83 self.assertEqual(eval(r""" '\x01' """), chr(1))
84 self.assertEqual(eval(""" '\x01' """), chr(1))
85 self.assertEqual(eval(r""" '\x81' """), chr(0x81))
86 self.assertEqual(eval(""" '\x81' """), chr(0x81))
87 self.assertEqual(eval(r""" '\u1881' """), chr(0x1881))
88 self.assertEqual(eval(""" '\u1881' """), chr(0x1881))
89 self.assertEqual(eval(r""" '\U0001d120' """), chr(0x1d120))
90 self.assertEqual(eval(""" '\U0001d120' """), chr(0x1d120))
[all …]
Dtest_codeop.py36 elif symbol == 'eval':
38 d = { 'value': eval(code,ctx) }
39 r = { 'value': eval(str,ctx) }
101 av("3**3","eval")
102 av("(lambda z: \n z**3)","eval")
104 av("9+ \\\n3","eval")
105 av("9+ \\\n3\n","eval")
107 av("\n\na**3","eval")
108 av("\n \na**3","eval")
109 av("#a\n#b\na**3","eval")
[all …]
Dtest_opcodes.py98 f = eval('lambda: None')
99 g = eval('lambda: None')
102 f = eval('lambda a: a')
103 g = eval('lambda a: a')
106 f = eval('lambda a=1: a')
107 g = eval('lambda a=1: a')
110 f = eval('lambda: 0')
111 g = eval('lambda: 1')
114 f = eval('lambda: None')
115 g = eval('lambda a: None')
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/
Dsparse_split_op_test.py85 self.assertAllEqual(sp_tensors[0].indices.eval(), [[0, 0], [0, 2], [0, 4],
88 self.assertAllEqual(sp_tensors[0].values.eval(), [0, 2, 4, 5, 11, 13, 14])
89 self.assertAllEqual(sp_tensors[0].dense_shape.eval(), [2, 6])
90 self.assertAllEqual(sp_tensors[1].indices.eval(), [[0, 0], [0, 3], [0, 5],
93 self.assertAllEqual(sp_tensors[1].values.eval(),
95 self.assertAllEqual(sp_tensors[1].dense_shape.eval(), [2, 6])
103 self.assertAllEqual(sp_tensors_3[0].indices.eval(),
106 self.assertAllEqual(sp_tensors_3[0].values.eval(),
108 self.assertAllEqual(sp_tensors_3[0].dense_shape.eval(), [5, 3])
109 self.assertAllEqual(sp_tensors_3[1].indices.eval(),
[all …]
Dsparse_slice_op_test.py90 sp_tensor0.indices.eval(),
92 self.assertAllEqual(sp_tensor0.values.eval(), [0, 2, 4, 5, 11, 13, 14])
93 self.assertAllEqual(sp_tensor0.dense_shape.eval(), [2, 6])
95 sp_tensor1.indices.eval(),
97 self.assertAllEqual(sp_tensor1.values.eval(),
99 self.assertAllEqual(sp_tensor1.dense_shape.eval(), [2, 6])
110 sp_tensor0.indices.eval(),
112 self.assertAllEqual(sp_tensor0.values.eval(), [0, 2, 11, 20, 30, 32, 41])
113 self.assertAllEqual(sp_tensor0.dense_shape.eval(), [5, 3])
114 self.assertAllEqual(sp_tensor1.indices.eval(),
[all …]
Dinplace_ops_test.py40 self.assertAllClose(x.eval(), y)
43 self.assertAllClose(x.eval(), y)
47 self.assertAllClose(x.eval(), y)
50 self.assertAllClose(x.eval(), y)
57 self.assertAllClose(x.eval(), y)
61 self.assertAllClose(x.eval(), y)
65 self.assertAllClose(x.eval(), y)
68 self.assertAllClose(x.eval(), y)
76 self.assertAllClose(x.eval(), y)
79 self.assertAllClose(x.eval(), y)
[all …]
Das_string_op_test.py42 result = output.eval(feed_dict={input_: float_inputs_})
47 result = output.eval(feed_dict={input_: float_inputs_})
51 result = output.eval(feed_dict={input_: float_inputs_})
55 result = output.eval(feed_dict={input_: float_inputs_})
59 result = output.eval(feed_dict={input_: float_inputs_})
63 result = output.eval(feed_dict={input_: float_inputs_})
67 result = output.eval(feed_dict={input_: float_inputs_})
72 result = output.eval(feed_dict={input_: float_inputs_})
77 output.eval(feed_dict={input_: float_inputs_})
81 output.eval(feed_dict={input_: float_inputs_})
[all …]
/external/tensorflow/tensorflow/contrib/distributions/python/kernel_tests/
Dcauchy_test.py54 is_finite = np.isfinite(tensor.eval())
62 self.assertAllEqual(expected, loc_shape.eval())
63 self.assertAllEqual(expected, scale_shape.eval())
68 cauchy_lib.Cauchy(loc, scale).sample()).eval())
96 self.assertAllEqual(cauchy.batch_shape_tensor().eval(), log_pdf.shape)
97 self.assertAllEqual(cauchy.batch_shape_tensor().eval(),
98 log_pdf.eval().shape)
100 self.assertAllEqual(cauchy.batch_shape, log_pdf.eval().shape)
103 self.assertAllEqual(cauchy.batch_shape_tensor().eval(), pdf.shape)
104 self.assertAllEqual(cauchy.batch_shape_tensor().eval(), pdf.eval().shape)
[all …]
Dhalf_normal_test.py53 is_finite = np.isfinite(tensor.eval())
61 self.assertAllEqual(expected, scale_shape.eval())
65 array_ops.shape(hn_lib.HalfNormal(scale).sample()).eval())
73 self.assertAllEqual(dist.batch_shape_tensor().eval(), tensor.shape)
74 self.assertAllEqual(dist.batch_shape_tensor().eval(), tensor.eval().shape)
76 self.assertAllEqual(dist.batch_shape, tensor.eval().shape)
104 expected_log_pdf = stats.halfnorm(scale=scale.eval()).logpdf(x)
105 self.assertAllClose(expected_log_pdf, log_pdf.eval())
106 self.assertAllClose(np.exp(expected_log_pdf), pdf.eval())
123 expected_log_pdf = stats.halfnorm(scale=scale.eval()).logpdf(x)
[all …]
Dbinomial_test.py34 self.assertAllEqual([], binom.event_shape_tensor().eval())
35 self.assertAllEqual([], binom.batch_shape_tensor().eval())
44 self.assertAllEqual([], binom.event_shape_tensor().eval())
45 self.assertAllEqual([3, 2], binom.batch_shape_tensor().eval())
56 self.assertAllClose(n, binom.total_count.eval())
64 self.assertAllClose(p, binom.probs.eval())
72 self.assertAllClose(logits, binom.logits.eval())
79 binom.prob([2., 3, 2]).eval()
80 binom.prob([3., 1, 2]).eval()
81 binom.cdf([2., 3, 2]).eval()
[all …]
/external/mesa3d/src/mesa/vbo/
Dvbo_exec_eval.c38 assert(attr < ARRAY_SIZE(exec->eval.map1)); in clear_active_eval1()
39 exec->eval.map1[attr].map = NULL; in clear_active_eval1()
44 assert(attr < ARRAY_SIZE(exec->eval.map2)); in clear_active_eval2()
45 exec->eval.map2[attr].map = NULL; in clear_active_eval2()
51 assert(attr < ARRAY_SIZE(exec->eval.map1)); in set_active_eval1()
52 if (!exec->eval.map1[attr].map) { in set_active_eval1()
53 exec->eval.map1[attr].map = map; in set_active_eval1()
54 exec->eval.map1[attr].sz = dim; in set_active_eval1()
61 assert(attr < ARRAY_SIZE(exec->eval.map2)); in set_active_eval2()
62 if (!exec->eval.map2[attr].map) { in set_active_eval2()
[all …]
/external/googletest/googlemock/
DAndroid.mk30 $(eval include $(CLEAR_VARS)) \
31 $(eval LOCAL_MODULE := $(1)$(4)) \
32 $(eval LOCAL_CPP_EXTENSION := .cc) \
33 $(eval LOCAL_SRC_FILES := test/$(strip $(1)).cc $(2)) \
34 $(eval LOCAL_C_INCLUDES := $(LOCAL_PATH)/include) \
35 $(eval LOCAL_C_INCLUDES += $(LOCAL_PATH)/../googletest) \
36 $(eval LOCAL_CFLAGS += -Wall -Werror -Wno-sign-compare -Wno-unused-parameter) \
37 $(eval LOCAL_CFLAGS += -Wno-unused-private-field) \
38 $(eval LOCAL_CPP_FEATURES := rtti) \
39 $(eval LOCAL_STATIC_LIBRARIES := $(if $(3),$(3)$(4)) libgmock$(4)) \
[all …]
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorSyclExtractAccessor.h46 template<typename Arg> static inline auto getTuple(cl::sycl::handler& cgh, Arg eval)
47 -> decltype(ExtractAccessor<Arg>::getTuple(cgh, eval)) {
48 return ExtractAccessor<Arg>::getTuple(cgh, eval);
59 …l::access::mode AcM, typename Arg> static inline auto getAccessor(cl::sycl::handler& cgh, Arg eval)
60 -> decltype(utility::tuple::make_tuple( eval.device().template get_sycl_accessor<AcM,
61 …ternal::remove_all<typename Arg::CoeffReturnType>::type>(eval.dimensions().TotalSize(), cgh,eval.d…
62eval.device().template get_sycl_accessor<AcM, typename Eigen::internal::remove_all<typename Arg::C…
70 …getTuple(cl::sycl::handler& cgh, const TensorEvaluator<const UnaryCategory<OP, RHSExpr>, Dev> eval)
71 -> decltype(AccessorConstructor::getTuple(cgh, eval.impl())){
72 return AccessorConstructor::getTuple(cgh, eval.impl());
[all …]
/external/boringssl/src/crypto/fipsmodule/sha/asm/
Dsha1-x86_64.pl580 eval(shift(@insns)); # ror
582 eval(shift(@insns));
585 eval(shift(@insns));
586 eval(shift(@insns));
589 eval(shift(@insns));
590 eval(shift(@insns)); # rol
591 eval(shift(@insns));
593 eval(shift(@insns));
594 eval(shift(@insns));
597 eval(shift(@insns));
[all …]
Dsha1-586.pl680 eval(shift(@insns)); # ror
681 eval(shift(@insns));
682 eval(shift(@insns));
685 eval(shift(@insns));
686 eval(shift(@insns));
690 eval(shift(@insns)); # rol
691 eval(shift(@insns));
693 eval(shift(@insns));
694 eval(shift(@insns));
696 eval(shift(@insns));
[all …]
/external/tensorflow/tensorflow/tools/compatibility/testdata/
Dtest_file_v0_11.py48 b, reduction_indices=dim0).eval(), [True, True])
51 b, reduction_indices=[0]).eval(), [False, False, False])
54 b, reduction_indices=dim1).eval(), [False, False])
57 a, reduction_indices=[1]).eval(), [6., 15.])
60 a, reduction_indices=[0, 1]).eval(), 21.0)
61 self.assertAllEqual(tf.reduce_sum(a, [0, 1]).eval(), 21.0)
64 a, reduction_indices=[1]).eval(), [6., 120.])
67 a, reduction_indices=[0, 1]).eval(), 720.0)
68 self.assertAllEqual(tf.reduce_prod(a, [0, 1]).eval(), 720.0)
71 a, reduction_indices=[1]).eval(), [2., 5.])
[all …]
/external/googletest/googletest/
DAndroid.mk36 $(eval include $(CLEAR_VARS)) \
37 $(eval LOCAL_MODULE := \
39 $(eval LOCAL_CPP_EXTENSION := .cc) \
40 $(eval LOCAL_SRC_FILES := test/$(strip $(1)).cc $(2)) \
41 $(eval LOCAL_C_INCLUDES := $(LOCAL_PATH)/include) \
42 $(eval LOCAL_CPP_FEATURES := rtti) \
43 $(eval LOCAL_CFLAGS := -Wall -Werror -Wno-sign-compare -Wno-unnamed-type-template-args) \
44 $(eval LOCAL_CFLAGS += -Wno-unused-private-field) \
45 $(eval LOCAL_STATIC_LIBRARIES := \
47 $(if $(findstring _ndk,$(4)),$(eval LOCAL_LDLIBS := -ldl)) \
[all …]
/external/eigen/test/
Dmixingtypes.cpp140 …VERIFY_IS_APPROX((vf * vcf.transpose()).eval(), (vf.template cast<complex<float> >() * vcf.transpo… in mixingtypes()
144 …VERIFY_IS_APPROX((vf * vcf.transpose()).eval(), (vf.template cast<complex<float> >() * vcf.transpo… in mixingtypes()
150 VERIFY_IS_APPROX(sd*md*mcd, (sd*md).template cast<CD>().eval()*mcd); in mixingtypes()
152 VERIFY_IS_APPROX(scd*md*mcd, scd*md.template cast<CD>().eval()*mcd); in mixingtypes()
160 VERIFY_IS_APPROX(sd*md.adjoint()*mcd, (sd*md).template cast<CD>().eval().adjoint()*mcd); in mixingtypes()
162 …VERIFY_IS_APPROX(sd*md.adjoint()*mcd.adjoint(), (sd*md).template cast<CD>().eval().adjoint()*mcd.a… in mixingtypes()
164 VERIFY_IS_APPROX(sd*md*mcd.adjoint(), (sd*md).template cast<CD>().eval()*mcd.adjoint()); in mixingtypes()
167 VERIFY_IS_APPROX(sf*mf.adjoint()*mcf, (sf*mf).template cast<CF>().eval().adjoint()*mcf); in mixingtypes()
169 …VERIFY_IS_APPROX(sf*mf.adjoint()*mcf.adjoint(), (sf*mf).template cast<CF>().eval().adjoint()*mcf.a… in mixingtypes()
171 VERIFY_IS_APPROX(sf*mf*mcf.adjoint(), (sf*mf).template cast<CF>().eval()*mcf.adjoint()); in mixingtypes()
[all …]
/external/roboto-fonts/
DAndroid.mk23 # should be used with eval: $(eval $(call ...))
39 $(eval include $(CLEAR_VARS))\
40 $(eval LOCAL_MODULE := $(1))\
41 $(eval LOCAL_SRC_FILES := $(1))\
42 $(eval LOCAL_MODULE_CLASS := ETC)\
43 $(eval LOCAL_MODULE_TAGS := optional)\
44 $(eval LOCAL_MODULE_PATH := $(TARGET_OUT)/fonts)\
45 $(eval include $(BUILD_PREBUILT))
56 $(eval $(call create-font-symlink,Roboto-Black.ttf,Roboto-Bold.ttf))
57 $(eval $(call create-font-symlink,Roboto-BlackItalic.ttf,Roboto-BoldItalic.ttf))
[all …]
/external/tensorflow/tensorflow/contrib/tensor_forest/kernels/v4/
Ddecision_node_evaluator_test.cc34 std::unique_ptr<InequalityDecisionNodeEvaluator> eval( in TEST() local
41 ASSERT_EQ(eval->Decide(dataset, 2), 0); in TEST()
42 ASSERT_EQ(eval->Decide(dataset, 3), 0); in TEST()
43 ASSERT_EQ(eval->Decide(dataset, 4), 1); in TEST()
51 std::unique_ptr<InequalityDecisionNodeEvaluator> eval( in TEST() local
58 ASSERT_EQ(eval->Decide(dataset, 2), 0); in TEST()
59 ASSERT_EQ(eval->Decide(dataset, 3), 1); in TEST()
60 ASSERT_EQ(eval->Decide(dataset, 4), 1); in TEST()
68 std::unique_ptr<InequalityDecisionNodeEvaluator> eval( in TEST() local
75 ASSERT_EQ(eval->Decide(dataset, 2), 1); in TEST()
[all …]
/external/python/cpython2/Lib/test/
Dtest_compile.py36 self.assertRaises(SyntaxError, eval, 'lambda a,a:0')
37 self.assertRaises(SyntaxError, eval, 'lambda a,a=1:0')
38 self.assertRaises(SyntaxError, eval, 'lambda a=1,a=1:0')
120 "Test mapping interface versus possible calls from eval()."
230 self.assertRaises(SyntaxError, eval, "2e")
231 self.assertRaises(SyntaxError, eval, "2.0e+")
232 self.assertRaises(SyntaxError, eval, "1e-")
233 self.assertRaises(SyntaxError, eval, "3-4e/21")
258 self.assertRaises(SyntaxError, eval, arg)
260 self.assertEqual(eval("0777"), 511)
[all …]
Dtest_opcodes.py73 f = eval('lambda: None')
74 g = eval('lambda: None')
77 f = eval('lambda a: a')
78 g = eval('lambda a: a')
81 f = eval('lambda a=1: a')
82 g = eval('lambda a=1: a')
85 f = eval('lambda: 0')
86 g = eval('lambda: 1')
89 f = eval('lambda: None')
90 g = eval('lambda a: None')
[all …]
Dtest_codeop.py36 elif symbol == 'eval':
38 d = { 'value': eval(code,ctx) }
39 r = { 'value': eval(str,ctx) }
101 av("3**3","eval")
102 av("(lambda z: \n z**3)","eval")
104 av("9+ \\\n3","eval")
105 av("9+ \\\n3\n","eval")
107 av("\n\na**3","eval")
108 av("\n \na**3","eval")
109 av("#a\n#b\na**3","eval")
[all …]
/external/tensorflow/tensorflow/contrib/lookup/
Dlookup_ops_test.py50 self.assertAllEqual(3, table.size().eval())
56 result = output.eval()
62 exported_keys_tensor.eval())
63 self.assertItemsEqual([0, 1, 2], exported_values_tensor.eval())
74 self.assertAllEqual(3, table.size().eval())
80 result = output.eval()
94 self.assertAllEqual(3, table.size().eval())
99 result = output.eval()
111 self.assertAllEqual(3, table.size().eval())
116 result = output.eval()
[all …]
/external/tensorflow/tensorflow/contrib/linear_optimizer/python/kernel_tests/
Dsdca_ops_test.py263 self.assertAllClose(0.693147, unregularized_loss.eval())
264 self.assertAllClose(0.693147, loss.eval())
276 self.assertAllClose(0.411608, unregularized_loss.eval(), atol=0.05)
277 self.assertAllClose(0.525457, loss.eval(), atol=0.01)
279 self.assertAllEqual([0, 1], predicted_labels.eval())
281 0.01, lr.approximate_duality_gap().eval(), rtol=1e-2, atol=1e-2)
311 self.assertAllClose(0.693147, unregularized_loss.eval())
312 self.assertAllClose(0.693147, loss.eval())
324 self.assertAllClose(0.411608, unregularized_loss.eval(), atol=0.05)
325 self.assertAllClose(0.525457, loss.eval(), atol=0.01)
[all …]

12345678910>>...108