Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/python/ops/
Dimage_grad_test.py41 for nptype in self.TYPES:
42 x = np.arange(0, 4).reshape(in_shape).astype(nptype)
58 for nptype in self.TYPES:
59 x = np.arange(0, 6).reshape(in_shape).astype(nptype)
74 for nptype in self.TYPES:
75 x = np.arange(0, 24).reshape(in_shape).astype(nptype)
90 for nptype in self.TYPES:
91 x = np.arange(0, np.prod(in_shape)).reshape(in_shape).astype(nptype)
Dimage_ops_test.py60 for nptype in [np.float32, np.float64]:
61 inp = np.random.rand(*shape).astype(nptype)
83 for nptype in [np.float32, np.float64]:
84 rgb_np = np.array(data, dtype=nptype).reshape([2, 2, 3]) / 255.
100 for nptype in [np.float32, np.float64]:
101 inp = np.random.rand(*shape).astype(nptype)
130 for nptype in [np.float32, np.float64]:
131 inp = np.random.rand(*shape).astype(nptype)
2265 def shouldRunOnGPU(self, method, nptype): argument
2267 nptype in [np.float32, np.float64]):
[all …]
/external/tensorflow/tensorflow/python/framework/
Dtensor_util_test.py191 for dtype, nptype in [(dtypes.float32, np.float32),
200 dtype=nptype),
319 for dtype, nptype in [(dtypes.int32, np.int32),
329 self.assertEquals(nptype, a.dtype)
330 self.assertAllClose(np.array([10, 20, 30], dtype=nptype), a)
332 t = tensor_util.make_tensor_proto(np.array([10, 20, 30], dtype=nptype))
336 self.assertEquals(nptype, a.dtype)
337 self.assertAllClose(np.array([10, 20, 30], dtype=nptype), a)
340 for dtype, nptype in [(dtypes.int64, np.int64), (dtypes.int32, np.int32),
345 dtype=nptype),
[all …]
/external/tensorflow/tensorflow/compiler/tests/
Dimage_ops_test.py52 for nptype in self.float_types:
53 inp = GenerateNumpyRandomRGB(shape).astype(nptype)
57 batch0 = array_ops.placeholder(nptype, shape=shape)
78 for nptype in self.float_types:
79 rgb_np = np.array(data, dtype=nptype).reshape([2, 2, 3]) / 255.
81 placeholder = array_ops.placeholder(nptype)
90 for nptype in self.float_types:
91 rgb_flat = GenerateNumpyRandomRGB((64, 3)).astype(nptype)
100 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