Home
last modified time | relevance | path

Searched refs:nptype (Results 1 – 6 of 6) sorted by relevance

/external/tensorflow/tensorflow/python/framework/
Dtensor_util_test.py199 for dtype, nptype in [(dtypes.float32, np.float32),
208 dtype=nptype),
328 def testIntTypes(self, dtype, nptype): argument
334 self.assertEqual(nptype, a.dtype)
335 self.assertAllClose(np.array([10, 20, 30], dtype=nptype), a)
337 t = tensor_util.make_tensor_proto(np.array([10, 20, 30], dtype=nptype))
341 self.assertEqual(nptype, a.dtype)
342 self.assertAllClose(np.array([10, 20, 30], dtype=nptype), a)
350 def testIntTypesWithImplicitRepeat(self, dtype, nptype): argument
353 dtype=nptype),
[all …]
/external/tensorflow/tensorflow/python/ops/
Dimage_grad_test_base.py47 for nptype in self.TYPES:
48 x = np.arange(0, 4).reshape(in_shape).astype(nptype)
62 for nptype in self.TYPES:
63 x = np.arange(0, 6).reshape(in_shape).astype(nptype)
79 for nptype in self.TYPES:
80 x = np.arange(0, 24).reshape(in_shape).astype(nptype)
96 for nptype in self.TYPES:
97 x = np.arange(0, np.prod(in_shape)).reshape(in_shape).astype(nptype)
560 for nptype in self.TYPES:
561 x = np.random.randint(0, high=255, size=[2, 20, 30, 3]).astype(nptype)
Dimage_ops_test.py70 for nptype in [np.float32, np.float64]:
71 inp = np.random.rand(*shape).astype(nptype)
93 for nptype in [np.float32, np.float64]:
94 rgb_np = np.array(data, dtype=nptype).reshape([2, 2, 3]) / 255.
112 for nptype in [np.float32, np.float64]:
113 inp = np.random.rand(*shape).astype(nptype)
144 for nptype in [np.float32, np.float64]:
145 inp = np.random.rand(*shape).astype(nptype)
2645 def shouldRunOnGPU(self, method, nptype): argument
2647 nptype in [np.float32, np.float64]):
[all …]
/external/tensorflow/tensorflow/compiler/tests/
Dimage_ops_test.py54 for nptype in self.float_types:
55 inp = _generate_numpy_random_rgb(shape).astype(nptype)
59 batch0 = array_ops.placeholder(nptype, shape=shape)
80 for nptype in self.float_types:
81 rgb_np = np.array(data, dtype=nptype).reshape([2, 2, 3]) / 255.
83 placeholder = array_ops.placeholder(nptype)
92 for nptype in self.float_types:
93 rgb_flat = _generate_numpy_random_rgb((64, 3)).astype(nptype)
102 placeholder = array_ops.placeholder(nptype)
/external/ipsec-tools/src/racoon/
Disakmp.c2603 set_isakmp_header(vbuf, iph1, nptype, etype, flags, msgid) in set_isakmp_header() argument
2606 int nptype;
2620 isakmp->np = nptype;
2634 set_isakmp_header1(vbuf, iph1, nptype) in set_isakmp_header1() argument
2637 int nptype;
2639 return set_isakmp_header (vbuf, iph1, nptype, iph1->etype, iph1->flags, iph1->msgid);
2646 set_isakmp_header2(vbuf, iph2, nptype) in set_isakmp_header2() argument
2649 int nptype;
2651 return set_isakmp_header (vbuf, iph2->ph1, nptype, ISAKMP_ETYPE_QUICK, iph2->flags, iph2->msgid);
2658 set_isakmp_payload(buf, src, nptype) in set_isakmp_payload() argument
[all …]
Disakmp_ident.c1774 int nptype; local