def _testTypes(self, vals):
    for dtype in [np.float32, np.float64, np.int32, np.int64]:
        self.setUp()
        x = vals.astype(dtype)
        tftype = _NP_TO_TF[dtype]
        self.assertAllEqual(x, self._initFetch(x, tftype, use_gpu=False))
        self.assertAllEqual(x, self._initFetch(x, tftype, use_gpu=True))
def _testTypes(self, vals):
    for dtype in [np.float32, np.float64, np.int32, np.int64]:
        self.setUp()
        x = vals.astype(dtype)
        tftype = _NP_TO_TF[dtype]
        self.assertAllEqual(x, self._initFetch(x, tftype, use_gpu=False))
        self.assertAllEqual(x, self._initFetch(x, tftype, use_gpu=True))