/external/python/cpython3/Lib/test/ |
D | test_string_literals.py | 84 self.assertEqual(eval(""" 'x' """), 'x') 85 self.assertEqual(eval(r""" '\x01' """), chr(1)) 86 self.assertEqual(eval(""" '\x01' """), chr(1)) 87 self.assertEqual(eval(r""" '\x81' """), chr(0x81)) 88 self.assertEqual(eval(""" '\x81' """), chr(0x81)) 89 self.assertEqual(eval(r""" '\u1881' """), chr(0x1881)) 90 self.assertEqual(eval(""" '\u1881' """), chr(0x1881)) 91 self.assertEqual(eval(r""" '\U0001d120' """), chr(0x1d120)) 92 self.assertEqual(eval(""" '\U0001d120' """), chr(0x1d120)) 95 self.assertRaises(SyntaxError, eval, r""" '\x' """) [all …]
|
D | test_opcodes.py | 98 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 …]
|
D | test_compile.py | 44 self.assertRaises(SyntaxError, eval, 'lambda a,a:0') 45 self.assertRaises(SyntaxError, eval, 'lambda a,a=1:0') 46 self.assertRaises(SyntaxError, eval, 'lambda a=1,a=1:0') 136 self.assertRaises(SyntaxError, eval, "2e") 137 self.assertRaises(SyntaxError, eval, "2.0e+") 138 self.assertRaises(SyntaxError, eval, "1e-") 139 self.assertRaises(SyntaxError, eval, "3-4e/21") 165 self.assertRaises(SyntaxError, eval, arg) 167 self.assertEqual(eval("0xff"), 255) 168 self.assertEqual(eval("0777."), 777) [all …]
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | sparse_split_op_test.py | 85 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 …]
|
D | sparse_slice_op_test.py | 90 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 …]
|
D | inplace_ops_test.py | 40 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 …]
|
D | as_string_op_test.py | 42 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/tools/compatibility/testdata/ |
D | test_file_v0_11.py | 49 b, reduction_indices=dim0).eval(), [True, True]) 52 b, reduction_indices=[0]).eval(), [False, False, False]) 55 b, reduction_indices=dim1).eval(), [False, False]) 58 a, reduction_indices=[1]).eval(), [6., 15.]) 61 a, reduction_indices=[0, 1]).eval(), 21.0) 62 self.assertAllEqual(tf.reduce_sum(a, [0, 1]).eval(), 21.0) 65 a, reduction_indices=[1]).eval(), [6., 120.]) 68 a, reduction_indices=[0, 1]).eval(), 720.0) 69 self.assertAllEqual(tf.reduce_prod(a, [0, 1]).eval(), 720.0) 72 a, reduction_indices=[1]).eval(), [2., 5.]) [all …]
|
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/ |
D | TensorSyclExtractAccessor.h | 46 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… 62 …eval.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/python/cpython2/Lib/test/ |
D | test_compile.py | 36 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') 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) 261 self.assertEqual(eval("0777L"), 511) [all …]
|
D | test_opcodes.py | 73 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 …]
|
D | test_unary.py | 32 self.assertTrue(eval("+" + nines) == eval("+" + nines + "L")) 33 self.assertTrue(eval("-" + nines) == eval("-" + nines + "L")) 34 self.assertTrue(eval("~" + nines) == eval("~" + nines + "L")) 46 self.assertRaises(TypeError, eval, op + "'a'") 48 self.assertRaises(TypeError, eval, op + "u'a'") 50 self.assertRaises(TypeError, eval, "~2j") 51 self.assertRaises(TypeError, eval, "~2.0")
|
/external/eigen/test/ |
D | mixingtypes.cpp | 140 …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 …]
|
D | rvalue_types.cpp | 48 CALL_SUBTEST_1(rvalue_copyassign( MatrixXf::Random(50,50).eval() )); in test_rvalue_types() 49 CALL_SUBTEST_1(rvalue_copyassign( ArrayXXf::Random(50,50).eval() )); in test_rvalue_types() 51 CALL_SUBTEST_1(rvalue_copyassign( Matrix<float,1,Dynamic>::Random(50).eval() )); in test_rvalue_types() 52 CALL_SUBTEST_1(rvalue_copyassign( Array<float,1,Dynamic>::Random(50).eval() )); in test_rvalue_types() 54 CALL_SUBTEST_1(rvalue_copyassign( Matrix<float,Dynamic,1>::Random(50).eval() )); in test_rvalue_types() 55 CALL_SUBTEST_1(rvalue_copyassign( Array<float,Dynamic,1>::Random(50).eval() )); in test_rvalue_types() 57 CALL_SUBTEST_2(rvalue_copyassign( Array<float,2,1>::Random().eval() )); in test_rvalue_types() 58 CALL_SUBTEST_2(rvalue_copyassign( Array<float,3,1>::Random().eval() )); in test_rvalue_types() 59 CALL_SUBTEST_2(rvalue_copyassign( Array<float,4,1>::Random().eval() )); in test_rvalue_types() 61 CALL_SUBTEST_2(rvalue_copyassign( Array<float,2,2>::Random().eval() )); in test_rvalue_types() [all …]
|
D | product_extra.cpp | 41 VERIFY_IS_APPROX(m3.noalias() = m1 * m2.adjoint(), m1 * m2.adjoint().eval()); in product_extra() 42 …X(m3.noalias() = m1.adjoint() * square.adjoint(), m1.adjoint().eval() * square.adjoint().eval()); in product_extra() 43 VERIFY_IS_APPROX(m3.noalias() = m1.adjoint() * m2, m1.adjoint().eval() * m2); in product_extra() 44 …VERIFY_IS_APPROX(m3.noalias() = (s1 * m1.adjoint()) * m2, (s1 * m1.adjoint()).eval() * m2… in product_extra() 45 …X(m3.noalias() = ((s1 * m1).adjoint()) * m2, (numext::conj(s1) * m1.adjoint()).eval() * m2); in product_extra() 46 …3.noalias() = (- m1.adjoint() * s1) * (s3 * m2), (- m1.adjoint() * s1).eval() * (s3 * m2).eval()); in product_extra() 47 …VERIFY_IS_APPROX(m3.noalias() = (s2 * m1.adjoint() * s1) * m2, (s2 * m1.adjoint() * s1).eval(… in product_extra() 48 …PROX(m3.noalias() = (-m1*s2) * s1*m2.adjoint(), (-m1*s2).eval() * (s1*m2.adjoint()).eval()); in product_extra() 51 …_APPROX( m1.adjoint() * (s1*m2).conjugate(), (m1.adjoint()).eval() * ((s1*m2).conjugate()).eval()); in product_extra() 57 (-m1.conjugate()*s2).eval() * (s1 * vc2).eval()); in product_extra() [all …]
|
D | product_syrk.cpp | 39 … ((s1 * rhs2 * rhs2.adjoint()).eval().template triangularView<Lower>().toDenseMatrix())); in syrk() 42 … ((s1 * rhs2 * rhs22.adjoint()).eval().template triangularView<Lower>().toDenseMatrix())); in syrk() 47 … (s1 * rhs2 * rhs2.adjoint()).eval().template triangularView<Upper>().toDenseMatrix()); in syrk() 50 … (s1 * rhs22 * rhs2.adjoint()).eval().template triangularView<Upper>().toDenseMatrix()); in syrk() 55 … (s1 * rhs1.adjoint() * rhs1).eval().template triangularView<Lower>().toDenseMatrix()); in syrk() 58 … (s1 * rhs11.adjoint() * rhs1).eval().template triangularView<Lower>().toDenseMatrix()); in syrk() 63 … (s1 * rhs1.adjoint() * rhs1).eval().template triangularView<Upper>().toDenseMatrix()); in syrk() 65 … (s1 * rhs1.adjoint() * rhs11).eval().template triangularView<Upper>().toDenseMatrix()); in syrk() 70 … (s1 * rhs3.adjoint() * rhs3).eval().template triangularView<Lower>().toDenseMatrix()); in syrk() 74 … (s1 * rhs3.adjoint() * rhs3).eval().template triangularView<Upper>().toDenseMatrix()); in syrk() [all …]
|
/external/mesa3d/src/mesa/vbo/ |
D | vbo_exec_eval.c | 38 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/ply/ply/example/BASIC/ |
D | basinterp.py | 17 'SIN': lambda z: math.sin(self.eval(z)), 18 'COS': lambda z: math.cos(self.eval(z)), 19 'TAN': lambda z: math.tan(self.eval(z)), 20 'ATN': lambda z: math.atan(self.eval(z)), 21 'EXP': lambda z: math.exp(self.eval(z)), 22 'ABS': lambda z: abs(self.eval(z)), 23 'LOG': lambda z: math.log(self.eval(z)), 24 'SQR': lambda z: math.sqrt(self.eval(z)), 25 'INT': lambda z: int(self.eval(z)), 70 def eval(self, expr): member in BasicInterpreter [all …]
|
/external/python/google-api-python-client/tests/ |
D | test_schema.py | 65 self.assertEqual({}, eval(self.sc.prettyPrintSchema({'type': 'object'}))) 68 self.assertEqual(type(""), type(eval(self.sc.prettyPrintSchema({'type': 72 self.assertEqual(type(20), type(eval(self.sc.prettyPrintSchema({'type': 76 self.assertEqual(type(1.2), type(eval(self.sc.prettyPrintSchema({'type': 80 self.assertEqual(type(True), type(eval(self.sc.prettyPrintSchema({'type': 84 self.assertEqual('foo', eval(self.sc.prettyPrintSchema({'type': 88 self.assertEqual(20, eval(self.sc.prettyPrintSchema({'type': 92 self.assertEqual(1.2, eval(self.sc.prettyPrintSchema({'type': 96 self.assertEqual(False, eval(self.sc.prettyPrintSchema({'type': 100 self.assertEqual(None, eval(self.sc.prettyPrintSchema({'type': 'null'}))) [all …]
|
/external/tensorflow/tensorflow/python/keras/ |
D | metrics_functional_test.py | 37 self.assertEqual(K.eval(output).shape, (6,)) 44 self.assertEqual(K.eval(metric(y_true, y_pred)).shape, (6,)) 49 self.assertAllEqual(K.eval(metric(y_true, y_pred)), [0., 1., 1., 1.]) 54 self.assertAllEqual(K.eval(metric(y_true, y_pred)), [0., 1., 1., 1.]) 62 self.assertAllEqual(K.eval(metric(y_true, y_pred)), [[1., 0.], [0., 1.]]) 69 self.assertEqual(K.eval(metric(y_true, y_pred)).shape, (6,)) 92 result = K.eval( 95 result = K.eval( 98 result = K.eval( 105 result = K.eval( [all …]
|
/external/eigen/unsupported/test/ |
D | cxx11_tensor_forced_eval.cpp | 35 mat3 = mat3.contract(mat2, dims).eval(); in test_simple() 37 VERIFY_IS_APPROX(mat3(0, 0), (m1*m2).eval()(0,0)); in test_simple() 38 VERIFY_IS_APPROX(mat3(0, 1), (m1*m2).eval()(0,1)); in test_simple() 39 VERIFY_IS_APPROX(mat3(0, 2), (m1*m2).eval()(0,2)); in test_simple() 40 VERIFY_IS_APPROX(mat3(1, 0), (m1*m2).eval()(1,0)); in test_simple() 41 VERIFY_IS_APPROX(mat3(1, 1), (m1*m2).eval()(1,1)); in test_simple() 42 VERIFY_IS_APPROX(mat3(1, 2), (m1*m2).eval()(1,2)); in test_simple() 43 VERIFY_IS_APPROX(mat3(2, 0), (m1*m2).eval()(2,0)); in test_simple() 44 VERIFY_IS_APPROX(mat3(2, 1), (m1*m2).eval()(2,1)); in test_simple() 45 VERIFY_IS_APPROX(mat3(2, 2), (m1*m2).eval()(2,2)); in test_simple() [all …]
|
/external/mesa3d/src/gallium/drivers/r600/sfn/ |
D | sfn_instruction_cf.cpp | 51 void IfInstruction::do_evalue_liveness(LiverangeEvaluator& eval) const in do_evalue_liveness() 53 eval.scope_if(); in do_evalue_liveness() 75 void ElseInstruction::do_evalue_liveness(LiverangeEvaluator& eval) const in do_evalue_liveness() 77 eval.scope_else(); in do_evalue_liveness() 99 void IfElseEndInstruction::do_evalue_liveness(LiverangeEvaluator& eval) const in do_evalue_liveness() 101 eval.scope_endif(); in do_evalue_liveness() 121 void LoopBeginInstruction::do_evalue_liveness(LiverangeEvaluator& eval) const in do_evalue_liveness() 123 eval.scope_loop_begin(); in do_evalue_liveness() 143 void LoopEndInstruction::do_evalue_liveness(LiverangeEvaluator& eval) const in do_evalue_liveness() 145 eval.scope_loop_end(); in do_evalue_liveness() [all …]
|
/external/tensorflow/tensorflow/python/kernel_tests/boosted_trees/ |
D | quantile_ops_test.py | 105 self.assertAllClose(self._feature_0_boundaries, buckets[0].eval()) 106 self.assertAllClose(self._feature_1_boundaries, buckets[1].eval()) 108 self.assertAllClose(self._feature_0_quantiles, quantiles[0].eval()) 109 self.assertAllClose(self._feature_1_quantiles, quantiles[1].eval()) 140 self.assertAllClose(self._feature_0_boundaries, buckets[0].eval()) 141 self.assertAllClose(self._feature_1_boundaries, buckets[1].eval()) 143 self.assertAllClose(self._feature_0_quantiles, quantiles[0].eval()) 144 self.assertAllClose(self._feature_1_quantiles, quantiles[1].eval()) 174 self.assertAllClose(self._feature_0_boundaries, bucket_0[0].eval()) 175 self.assertAllClose(self._feature_1_boundaries, bucket_1[0].eval()) [all …]
|
/external/tensorflow/tensorflow/lite/experimental/ruy/ |
D | tune_tool.cc | 35 static void Query(float* eval, float* threshold) { in Query() argument 37 *eval = resolver.EvalRatio(); in Query() 47 float eval; in main() local 49 ruy::TuneTool::Query(&eval, &threshold); in main() 51 eval, eval < threshold ? '<' : '>', threshold, in main() 52 eval < threshold ? "in-order" : "out-of-order"); in main()
|
/external/libchrome/base/strings/ |
D | pattern.cc | 108 constexpr bool MatchPatternT(const CHAR* eval, in MatchPatternT() argument 115 if (!SearchForChars(&pattern, pattern_end, &eval, eval_end, in MatchPatternT() 145 bool MatchPattern(StringPiece eval, StringPiece pattern) { in MatchPattern() argument 146 return MatchPatternT(eval.data(), eval.data() + eval.size(), pattern.data(), in MatchPattern() 150 bool MatchPattern(StringPiece16 eval, StringPiece16 pattern) { in MatchPattern() argument 151 return MatchPatternT(eval.data(), eval.data() + eval.size(), pattern.data(), in MatchPattern()
|